Shared with me browser view (#82)

* shared with me page, move browser view backend
This commit is contained in:
Anton Shepilov
2023-06-20 14:42:47 +02:00
committed by GitHub
parent c249c70d48
commit 19b2d7d009
8 changed files with 262 additions and 16 deletions
@@ -94,6 +94,13 @@ const routes: FastifyPluginCallback = (fastify: FastifyInstance, _options, next)
handler: documentsController.sharedWithMe.bind(documentsController),
});
fastify.route({
method: "POST",
url: `${baseUrl}/browse/:id`,
preValidation: [fastify.authenticate],
handler: documentsController.browse.bind(documentsController),
});
fastify.route({
method: "GET",
url: `${baseUrl}/tabs/:tab_id`,