Commit 5a159882 authored by Mahmoud Aglan's avatar Mahmoud Aglan

Add root route so GET / returns API info instead of 404

Co-Authored-By: 's avatarClaude Opus 4.6 <noreply@anthropic.com>
parent 90d678e4
Pipeline #36 canceled with stages
...@@ -61,6 +61,7 @@ export async function buildApp(): Promise<FastifyInstance> { ...@@ -61,6 +61,7 @@ export async function buildApp(): Promise<FastifyInstance> {
// Health check // Health check
app.get('/health', async () => ({ status: 'ok', timestamp: new Date().toISOString() })); app.get('/health', async () => ({ status: 'ok', timestamp: new Date().toISOString() }));
app.get('/', async () => ({ name: 'Swiss System Tournament API', version: '1.0.0', docs: '/api/v1' }));
// API routes // API routes
await app.register(authRoutes, { prefix: `${API_PREFIX}/auth` }); await app.register(authRoutes, { prefix: `${API_PREFIX}/auth` });
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment