Adds GET/POST/PATCH/DELETE /api/ships with constraint validation (current <= max), enum checks for maneuver_class, and cascade delete for weapons. Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
8 lines
207 B
TypeScript
8 lines
207 B
TypeScript
import type { FastifyInstance } from 'fastify';
|
|
|
|
export async function healthRoutes(app: FastifyInstance) {
|
|
app.get('/api/health', async () => {
|
|
return { status: 'ok', timestamp: Date.now() };
|
|
});
|
|
}
|