saveinmed/backoffice/src/app.controller.ts

19 lines
696 B
TypeScript

import { Controller, Get } from '@nestjs/common';
@Controller()
export class AppController {
@Get()
getHealth() {
return {
message: '💊 SaveInMed Backoffice is running!',
docs: '/docs',
health: '/health', // Note: User requested this, but I need to make sure /health exists or this is just a static link. Usually NestJS has Terminus for health, or I can add a simple one. For now I will match the user request JSON structure.
version: '1.0.0',
};
}
@Get('health') // Adding health route just in case, or user implies it exists. I'll add a simple one.
checkHealth() {
return { status: 'ok' };
}
}