LocChat/server/app.controller.ts

13 lines
266 B
TypeScript
Raw Normal View History

2021-11-22 16:21:53 -05:00
import { Controller, Get, Render, Req } from '@nestjs/common';
import { Request } from 'express';
2021-11-16 21:14:46 -05:00
@Controller()
export class AppController {
@Get()
@Render('index')
2021-11-22 16:21:53 -05:00
index(@Req() req: Request) {
const jwt = req.cookies['_token'];
return { jwt };
}
2021-11-16 21:14:46 -05:00
}