🍄 Separate trash for the personal and shared drive (#189)

This commit is contained in:
Montassar Ghanmy
2023-10-06 17:05:07 +01:00
committed by GitHub
parent f0dcf34bbe
commit edfd765d57
34 changed files with 440 additions and 185 deletions
@@ -51,6 +51,13 @@ const routes: FastifyPluginCallback = (fastify: FastifyInstance, _options, next)
handler: documentsController.delete.bind(documentsController),
});
fastify.route({
method: "POST",
url: `${serviceUrl}/:id/restore`,
preValidation: [fastify.authenticateOptional],
handler: documentsController.restore.bind(documentsController),
});
fastify.route({
method: "GET",
url: `${serviceUrl}/:id/user/:user_id/access`,