Auth SuperOAuth (JWT validation + httpOnly cookie), entités users/characters/level_thresholds, lazy calculation endurance, seed 100 niveaux, config prod-ready (trust proxy, helmet, CORS, rate limit). Validé : health 200, auth flow, character CRUD, endurance lazy, 401 sans cookie.
10 lines
198 B
TypeScript
10 lines
198 B
TypeScript
import { Controller, Get } from '@nestjs/common';
|
|
|
|
@Controller('health')
|
|
export class HealthController {
|
|
@Get()
|
|
check() {
|
|
return { status: 'ok', timestamp: new Date().toISOString() };
|
|
}
|
|
}
|