To do a proper redirect with Fastify, return both the status code and the URL, as follows: @Get() index(@Res() res) { res.status(302).redirect('/login'); } ...
確定! 回上一頁