lus / pasty

pasty is a fast and lightweight code pasting server
https://pasty.lus.pm
MIT License
200 stars 27 forks source link

Move raw paste view to frontend #22

Closed lus closed 1 year ago

lus commented 2 years ago

Currently, the raw paste view (GET /<paste_id>/raw) is handled by the backend while the normal paste view (GET /<paste_id>) is being routed to the frontend.

It would make sense to move this as paste encryption is done on the client side and currently paste decryption is not possible for the raw view.

It would also provide a structured way of different view options which then could include #21 .

lus commented 1 year ago

I decided not to do this. The main use case of a raw endpoint is CLI usage, for example using curl, which wouldn't support URL hashes and decryption using JS anyways. This will stay in the backend. However, maybe the URL path will change.