🕹 Manage root users
🕹 Manage root users
This commit is contained in:
@@ -37,6 +37,13 @@ const routes: FastifyPluginCallback = (fastify: FastifyInstance, _options, next)
|
||||
handler: documentsController.update.bind(documentsController),
|
||||
});
|
||||
|
||||
fastify.route({
|
||||
method: "POST",
|
||||
url: `${serviceUrl}/:id/level`,
|
||||
preValidation: [fastify.authenticateOptional],
|
||||
handler: documentsController.updateLevel.bind(documentsController),
|
||||
});
|
||||
|
||||
fastify.route({
|
||||
method: "DELETE",
|
||||
url: `${serviceUrl}/:id`,
|
||||
|
||||
Reference in New Issue
Block a user