Skip to content

Commit

Permalink
Enable home page w/o authentication
Browse files Browse the repository at this point in the history
  • Loading branch information
thisismydesign committed Oct 26, 2023
1 parent 5192a1e commit c948cd9
Showing 1 changed file with 5 additions and 1 deletion.
6 changes: 5 additions & 1 deletion src/server/view/view.controller.ts
Original file line number Diff line number Diff line change
Expand Up @@ -12,10 +12,14 @@ export class ViewController {
public async assets(@Req() req: Request, @Res() res: Response) {
await this.viewService.handler(req, res);
}
@Get('home')
public async home(@Req() req: Request, @Res() res: Response) {
await this.viewService.handler(req, res);
}

@UseGuards(JwtAuthGuard)
@Get('/:path((?!graphql$))*')
public async showProfile(@Req() req: Request, @Res() res: Response) {
public async authenticatedPage(@Req() req: Request, @Res() res: Response) {
await this.viewService.handler(req, res);
}
}

0 comments on commit c948cd9

Please sign in to comment.