feat: Register project routes in routes index
This commit is contained in:
@@ -1,12 +1,15 @@
|
||||
import { FastifyInstance } from 'fastify';
|
||||
import authRoutes from './auth';
|
||||
import projectsRoutes from './projects';
|
||||
|
||||
export default async function routes(fastify: FastifyInstance) {
|
||||
// Register all route groups
|
||||
fastify.register(authRoutes, { prefix: '/auth' });
|
||||
|
||||
// Register project routes
|
||||
fastify.register(projectsRoutes, { prefix: '/projects' });
|
||||
|
||||
// TODO: Register other route groups when implemented
|
||||
// fastify.register(projectsRoutes, { prefix: '/projects' });
|
||||
// fastify.register(layersRoutes, { prefix: '/layers' });
|
||||
// fastify.register(elementsRoutes, { prefix: '/elements' });
|
||||
// fastify.register(blocksRoutes, { prefix: '/blocks' });
|
||||
|
||||
Reference in New Issue
Block a user