🕹 Manage root users

🕹 Manage root users
This commit is contained in:
Montassar Ghanmy
2023-08-28 09:23:52 +01:00
committed by GitHub
parent 832ab8ac90
commit 84270a31e2
29 changed files with 410 additions and 45 deletions
@@ -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`,