add notes routes

This commit is contained in:
2025-02-07 18:39:55 +05:30
parent a130d0cb73
commit d043b5aed7
8 changed files with 312 additions and 0 deletions

View File

@@ -7,6 +7,7 @@ import {
listTaskHandler,
updateTaskHandler,
} from "./task.controller";
import { noteRoutes } from "../note/note.route";
export async function taskRoutes(fastify: FastifyInstance) {
fastify.post(
@@ -79,4 +80,10 @@ export async function taskRoutes(fastify: FastifyInstance) {
},
deleteTaskHandler
);
await noteRoutes(fastify, {
read: "task:read",
write: "task:write",
delete: "task:delete",
});
}