Spaces:
Sleeping
Sleeping
Complete deployment configuration (part 3)
Browse files
server/src/nest/platform/platform.routes.ts
CHANGED
|
@@ -112,6 +112,7 @@ export function applyPlatformUploads(app: express.Application): void {
|
|
| 112 |
* same as when they were function-local inside createApp.
|
| 113 |
*/
|
| 114 |
export function applyPlatformTransport(app: express.Application): void {
|
|
|
|
| 115 |
app.get('/api/health', (_req: Request, res: Response) => {
|
| 116 |
res.setHeader('Cache-Control', 'no-store, must-revalidate')
|
| 117 |
res.json({ status: 'ok' })
|
|
|
|
| 112 |
* same as when they were function-local inside createApp.
|
| 113 |
*/
|
| 114 |
export function applyPlatformTransport(app: express.Application): void {
|
| 115 |
+
app.get('/health', (_req: Request, res: Response) => res.status(200).send('OK'));
|
| 116 |
app.get('/api/health', (_req: Request, res: Response) => {
|
| 117 |
res.setHeader('Cache-Control', 'no-store, must-revalidate')
|
| 118 |
res.json({ status: 'ok' })
|