add notes routes
This commit is contained in:
@@ -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",
|
||||
});
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user