Files
mp-pilates/packages/server/src/app.controller.ts
richarjiang 90b54d1138 feat: scaffold monorepo with shared types and NestJS server
- pnpm workspace with packages/app, packages/server, packages/shared
- @mp-pilates/shared: enums, constants, TypeScript interfaces for all 8 data models
- @mp-pilates/server: NestJS bootstrap with health check, validation pipe, CORS
- Base TypeScript config with strict mode
2026-04-02 11:37:35 +08:00

10 lines
194 B
TypeScript

import { Controller, Get } from '@nestjs/common'
@Controller()
export class AppController {
@Get('health')
health() {
return { status: 'ok', timestamp: new Date().toISOString() }
}
}