bootstrap

This commit is contained in:
kislovdm
2026-07-08 16:43:29 +03:00
parent 10b5eafd53
commit d2819ff03c
74 changed files with 8174 additions and 1 deletions
+13
View File
@@ -0,0 +1,13 @@
import type { FastifyInstance } from 'fastify'
import { checkCodesPublic, checkCodesAuth } from '../services/cises-service.js'
import type { CheckCodesRequest } from '../types/index.js'
export async function cisesRoutes(app: FastifyInstance): Promise<void> {
app.post<{ Body: CheckCodesRequest }>('/api/check-codes/public', async (request) => {
return checkCodesPublic(request.body)
})
app.post<{ Body: CheckCodesRequest }>('/api/check-codes/auth', async (request) => {
return checkCodesAuth(request.body)
})
}