gemma: generate apps/api/src/routes/index.ts
This commit is contained in:
parent
82a9f14341
commit
1025675f4f
13
apps/api/src/routes/index.ts
Normal file
13
apps/api/src/routes/index.ts
Normal file
@ -0,0 +1,13 @@
|
||||
import { FastifyInstance } from "fastify"
|
||||
import authRoutes from "./auth"
|
||||
import timeEntryRoutes from "./time-entries"
|
||||
|
||||
export async function setupRoutes(server: FastifyInstance) {
|
||||
server.register(authRoutes, {
|
||||
prefix: "/api/auth"
|
||||
})
|
||||
|
||||
server.register(timeEntryRoutes, {
|
||||
prefix: "/api/time-entries"
|
||||
})
|
||||
}
|
||||
Loading…
Reference in New Issue
Block a user