feat(backend): add fastify api, auth, prisma schema and jobs
This commit is contained in:
7
apps/backend/src/modules/meta/meta.routes.ts
Normal file
7
apps/backend/src/modules/meta/meta.routes.ts
Normal file
@@ -0,0 +1,7 @@
|
||||
import type { FastifyInstance } from 'fastify';
|
||||
import { getBackendVersion } from '../../utils/version.js';
|
||||
|
||||
export default async function metaRoutes(app: FastifyInstance) {
|
||||
app.get('/version', async () => ({ backend: getBackendVersion() }));
|
||||
app.get('/health', async () => ({ status: 'ok', ts: new Date().toISOString() }));
|
||||
}
|
||||
Reference in New Issue
Block a user