From f525d1afe52ee31c611ef9600ec6dd4186bdff8a Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=D0=9D=D0=B8=D0=BA=D0=B8=D1=82=D0=B0=20=D0=9A=D1=80=D1=83?= =?UTF-8?q?=D0=B3=D0=BB=D0=B8=D1=86=D0=BA=D0=B8=D0=B9?= Date: Mon, 20 Oct 2025 03:36:30 +0600 Subject: [PATCH] =?UTF-8?q?=D0=BA=D1=83=D1=87=D0=B0=20=D0=B3=D0=BE=D0=B2?= =?UTF-8?q?=D0=BD=D0=B0?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- server/routes/auth.ts | 5 ----- server/server.ts | 1 + 2 files changed, 1 insertion(+), 5 deletions(-) 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 () => {