summaryrefslogtreecommitdiff
path: root/server/app.controller.ts
diff options
context:
space:
mode:
Diffstat (limited to 'server/app.controller.ts')
-rw-r--r--server/app.controller.ts8
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 };
+ }
}