NAME

LibreCat::App::Catalogue::Route::file - routes for file handling: upload & download files, request-a-copy. All these must be public.

GET /rc/approve/:key

Author approves the request. Email will be sent to user.

GET /rc/deny/:key

Author refuses the request for a copy. Email will be sent to user. Delete request key from database.

GET /rc/:key

User received permission for downloading. Now get the document if time has not expired yet.

POST /rc/:id/:file_id

Request a copy of the publication. Email will be sent to the author.

GET /download/:id/:file_id

Download a document. Access level of the document and user rights will be checked before.

GET /thumbnail/:id

Download the thumbnail of the document