-
Notifications
You must be signed in to change notification settings - Fork 192
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
added api controller modified data source for cloud based postgres added ssl config to data source ssl defaults to false cleaned up health controller fixed lint errors
- Loading branch information
Prudent Bird
committed
Jul 24, 2024
1 parent
85af481
commit f3eaabf
Showing
5 changed files
with
59 additions
and
32 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,17 @@ | ||
import { Controller, Get } from '@nestjs/common'; | ||
import { skipAuth } from './helpers/skipAuth'; | ||
|
||
@Controller() | ||
export default class ApiController { | ||
@skipAuth() | ||
@Get('api') | ||
public home() { | ||
return { status_code: 200, message: 'Welcome to NestJs Backend Endpoint' }; | ||
} | ||
|
||
@skipAuth() | ||
@Get('api/v1') | ||
public v1() { | ||
return { status_code: 200, message: 'Welcome to version 1 of NestJS Backend Endpoint' }; | ||
} | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters