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
|
|
|
}
|