Skip to content

Commit

Permalink
feat: update footer
Browse files Browse the repository at this point in the history
  • Loading branch information
Allen Zhang (张涛) committed Feb 4, 2024
1 parent 895ea83 commit f3301d6
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 7 deletions.
8 changes: 3 additions & 5 deletions packages/canyon-backend/src/app.controller.ts
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
import { Body, Controller, Get, Post, Req, Request } from '@nestjs/common';
import { Body, Controller, Get, Post, Req } from '@nestjs/common';

@Controller()
export class AppController {
Expand All @@ -8,7 +8,7 @@ export class AppController {
}

@Get('/api/base')
base(): any {
async base() {
return {
SYSTEM_QUESTION_LINK: process.env.SYSTEM_QUESTION_LINK,
GITLAB_URL: process.env.GITLAB_URL,
Expand All @@ -18,8 +18,6 @@ export class AppController {

@Post('/api/echo')
echo(@Body() body: any, @Req() request: any): any {
console.log(body);
console.log(request.cookies); // or "request.cookies['cookieKey']"
return body;
return request.cookies;
}
}
4 changes: 2 additions & 2 deletions packages/canyon-platform/src/components/app/app.json
Original file line number Diff line number Diff line change
Expand Up @@ -44,11 +44,11 @@
"children": [
{
"label": "Terms of service",
"link": "https://expo.dev/terms"
"link": "https://github.com/canyon-project/canyon"
},
{
"label": "Guidelines",
"link": "https://expo.dev/terms"
"link": "https://github.com/canyon-project/canyon"
}
]
}
Expand Down

0 comments on commit f3301d6

Please sign in to comment.