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