add webauthn routes

This commit is contained in:
2025-02-17 14:48:55 +05:30
parent 167e89b464
commit 453c3ef995
7 changed files with 589 additions and 1 deletions

View File

@@ -16,8 +16,9 @@ import { rtsSchemas } from "./rts/rts.schema";
import { taskSchemas } from "./task/task.schema";
import { notificationSchemas } from "./notification/notification.schema";
import { noteSchemas } from "./note/note.schema";
import { webAuthnRoutes } from "./webauthn/webauthn.route";
const app = fastify({ logger: true });
const app = fastify({ logger: true, trustProxy: true });
app.get("/health", (req, res) => {
return { status: "OK" };
@@ -33,6 +34,7 @@ app.register(cors, {
});
app.register(multipart, { limits: { fileSize: 50000000 } });
app.register(authRoutes, { prefix: "/auth" });
app.register(webAuthnRoutes, { prefix: "/webauthn" });
app.register(routes, { prefix: "/api/v1" });
for (const schema of [