diff --git a/server/routes/auth.ts b/server/routes/auth.ts index 34a9be4..9099eef 100644 --- a/server/routes/auth.ts +++ b/server/routes/auth.ts @@ -1,5 +1,4 @@ import type { FastifyInstance } from 'fastify' -import type { RegisterOptions } from 'fastify/types/register.js' import bcrypt from 'bcrypt' import { z } from 'zod' import { auth } from '../auth/lucia.ts' @@ -119,7 +118,3 @@ export default function (fastify: FastifyInstance) { } }) } - -const autoConfig: RegisterOptions = { - prefix: '/chad', -} diff --git a/server/server.ts b/server/server.ts index 0880a47..3f984bc 100644 --- a/server/server.ts +++ b/server/server.ts @@ -23,6 +23,7 @@ fastify.register(FastifyAutoLoad, { fastify.register(FastifyAutoLoad, { dir: join(__dirname, 'routes'), + options: { prefix: 'chad' }, }) ;(async () => {