Changed
- Breaking: remove possibility to GET
/api/entries/:id
, just use/:id
. - Breaking: remove possibility to POST to
/api/entries
and DELETE
/api/entries/:id
, this can be done on/
and/:id
respectively. Note that
DELETEing/:id
will now return a 303 status code instead of 200. - Return appropriate content type for
/:id
based onaccept
header (i.e.
text/html
returns the HTML page) and thefmt
query parameter (i.e. set to
raw
returns raw text). - Use
dl
query parameter to determine the extension to download a paste. - Use
fmt=raw
query parameter to fetch plain text paste. - Set cache control timeout for the favicon.