🍄 Separate trash for the personal and shared drive (#189)
This commit is contained in:
@@ -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`,
|
||||
|
||||
Reference in New Issue
Block a user