This commit is contained in:
parent
75fe5b0b8c
commit
f525d1afe5
@ -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',
|
||||
}
|
||||
|
||||
@ -23,6 +23,7 @@ fastify.register(FastifyAutoLoad, {
|
||||
|
||||
fastify.register(FastifyAutoLoad, {
|
||||
dir: join(__dirname, 'routes'),
|
||||
options: { prefix: 'chad' },
|
||||
})
|
||||
|
||||
;(async () => {
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user