add ctasks routes
This commit is contained in:
@@ -65,6 +65,8 @@ export async function taskRoutes(fastify: FastifyInstance) {
|
||||
},
|
||||
body: $task("updateTaskInput"),
|
||||
},
|
||||
config: { requiredClaims: ["task:write"] },
|
||||
preHandler: [fastify.authorize],
|
||||
},
|
||||
updateTaskHandler
|
||||
);
|
||||
@@ -119,7 +121,7 @@ export async function taskRoutes(fastify: FastifyInstance) {
|
||||
},
|
||||
},
|
||||
},
|
||||
config: { requiredClaims: ["rts:read"] },
|
||||
config: { requiredClaims: ["task:read"] },
|
||||
preHandler: [fastify.authorize],
|
||||
},
|
||||
async (req, res) => {
|
||||
|
||||
Reference in New Issue
Block a user