/
opt
/
mawid
/
apps
/
api
/
src
/
health
/
/opt/mawid/apps/api/src/health
mkdir
upload
Name
Size
Mode
Actions
health.controller.spec.ts
260
0644
edit
dl
rm
health.controller.ts
336
0644
edit
dl
rm
Edit:
/opt/mawid/apps/api/src/health/health.controller.ts
(336B)
import { Controller, Get } from '@nestjs/common'; import { SkipThrottle } from '@nestjs/throttler'; import { Public } from '../auth/public.decorator'; @Public() @SkipThrottle() @Controller('health') export class HealthController { @Get() check() { return { status: 'ok', service: 'api', time: new Date().toISOString() }; } }
Save
cmd:
run