add webauthn routes
This commit is contained in:
@@ -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 [
|
||||
|
||||
Reference in New Issue
Block a user