diff options
author | Joseph Ditton <jditton.atomic@gmail.com> | 2021-11-22 14:21:53 -0700 |
---|---|---|
committer | Joseph Ditton <jditton.atomic@gmail.com> | 2021-11-22 14:21:53 -0700 |
commit | 4ae4e874689a71e33cdd7a5799fc0c85c4861367 (patch) | |
tree | d60c5d5f05ce0d0574bc168084e2b014ee999c1b /server/app.controller.ts | |
parent | 3902da1747a3e32db0b67f1162eafd4860b3d27a (diff) | |
download | locchat-4ae4e874689a71e33cdd7a5799fc0c85c4861367.tar.gz locchat-4ae4e874689a71e33cdd7a5799fc0c85c4861367.zip |
adds start for console
Diffstat (limited to 'server/app.controller.ts')
-rw-r--r-- | server/app.controller.ts | 8 |
1 files changed, 6 insertions, 2 deletions
diff --git a/server/app.controller.ts b/server/app.controller.ts index a6bcf58..685cf8f 100644 --- a/server/app.controller.ts +++ b/server/app.controller.ts @@ -1,8 +1,12 @@ -import { Controller, Get, Render } from '@nestjs/common'; +import { Controller, Get, Render, Req } from '@nestjs/common'; +import { Request } from 'express'; @Controller() export class AppController { @Get() @Render('index') - index() {} + index(@Req() req: Request) { + const jwt = req.cookies['_token']; + return { jwt }; + } } |