我对nestjs和尝试同时在我的控制器中的一个方法上应用Get和Post非常陌生。为了简单起见,我只发布了核心逻辑代码片段:import { Get, Post } from "@nestjs/common";
import { RenderReact } from]) // Post was from @nestjs</em
我正在尝试使用Passportjs和NestJS(Fastify作为底层oauth2框架)来设置谷歌HTTP。我无法初始化google auth屏幕,每次尝试时都会出现错误。我已经尝试了几种不同的方法来实现这一点,但是AuthGuard似乎出现了问题,并且每次执行这一步时代码都会中断。我在这里分享了控制器的一个片段,它处理初始化身份验证屏幕的路由。下面是控制器: import { Controller, Get, Post, Body, UseGuards, Req, Res } from '@
我正在尝试将swagger添加到我的nestjs应用程序中,这是我得到的一个错误。In the future, promise rejections that are not handled will terminate the Node.js process with a non-zero这就是它: @Post(':