1
0
mirror of https://github.com/lus/pasty.git synced 2023-08-10 21:13:09 +03:00
Commit Graph

30 Commits

Author SHA1 Message Date
Lukas Schulte Pelkum
e8e2b49466
Use text/plain as fallback content type for hastebin support 2022-01-29 22:17:42 +01:00
Lukas Schulte Pelkum
c7fcdeb91c
Include AutoDelete lifetime in /api/v2/info response 2022-01-29 16:18:40 +01:00
Lukas Schulte Pelkum
471aff5bc5
Temporarily allow customization of the frontend path (workaround for #36, #37) 2022-01-29 01:28:54 +01:00
Lukas Schulte Pelkum
bd10c3321e
Fix paste creation endpoint redirection loop 2021-10-15 17:45:17 +02:00
Lukas Schulte Pelkum
1818fac196
Remove the paste-specific autoDelete field 2021-07-30 21:51:33 +02:00
Lukas Schulte Pelkum
6172ad463b
Update paste report webhook request 2021-07-24 17:03:40 +02:00
Lukas Schulte Pelkum
e8f7fa239e
Add option to define ID and modification token generation characters (#17) 2021-07-24 17:00:29 +02:00
Lukas Schulte Pelkum
99504e0bba
Implement API v2 (#13)
* Add documentation notice

* Rename the deletion token to modification token

* Implement API basics

* Implement paste modification endpoint (#10)

* Implement paste metadata

* Implement report webhook support

* Document API

* Document paste entity

* Update syntax highlighting types (js -> jsonc)

* Update migrator
2021-07-22 22:26:21 +02:00
Lukas Schulte Pelkum
4c392b4b52
Implement raw paste endpoint 2021-06-21 20:09:40 +02:00
Ringo Hoffmann
8cbb62070e
Add content length cap for paste creation endpoint (#8)
* add content length cap

* add development docker compose stack

* Fix paste creation error notification data

* Add length cap to hastebin endpoint as well

* Mention length cap in Readme

Co-authored-by: Lukas Schulte Pelkum <kbrt@protonmail.com>
2021-05-23 20:55:16 +02:00
Lukas Schulte Pelkum
5f7df183b4
Force specific Content-Type value for JS (#6) 2021-04-29 14:57:08 +02:00
Lukas Schulte Pelkum
542bb5b17d
Implement deletion token toggle & master 2021-04-20 16:38:00 +02:00
Lukas Schulte Pelkum
1792ef1c38
Rework project structure 2021-04-15 20:15:42 +02:00
Lukas Schulte Pelkum
de2add44ec
Bump to Go 1.16 2021-04-15 19:26:17 +02:00
Lukas SP
078d9895a2 Prevent from sending deletion token hash 2020-10-02 18:25:39 +02:00
Lukas SP
5585a26ab0 Switch from snowflake to random string ID system 2020-08-24 20:22:53 +02:00
Lukas SP
f5357a2c9d Fix buggy frontend routing 2020-08-24 18:32:14 +02:00
Lukas SP
5149434cff Implement S3 storage driver 2020-08-23 23:44:47 +02:00
Lukas SP
8317fef5f7 Implement rate limiting 2020-08-23 23:07:07 +02:00
Lukas SP
bb196a1c6a Remove trailing slash of paste creation endpoint 2020-08-23 21:02:16 +02:00
Lukas SP
215315af14 Implement CORS headers 2020-08-23 20:29:18 +02:00
Lukas SP
d1720c92f2 Implement web server starting log 2020-08-23 16:44:06 +02:00
Lukas SP
6d8bd2c2b5 Implement information endpoint 2020-08-23 16:40:06 +02:00
Lukas SP
a3166a87f0 Implement legacy hastebin support 2020-08-23 16:22:20 +02:00
Lukas SP
cc150b82ac Implement deletion token hashing 2020-08-23 16:06:40 +02:00
Lukas SP
13b0e961ae Fix frontend routing 2020-08-23 14:13:17 +02:00
Lukas SP
0f90b267c7 Fix error 2020-08-23 00:45:56 +02:00
Lukas SP
e297a5c2b4 Implement paste deletion endpoint 2020-08-23 00:45:30 +02:00
Lukas SP
3aba9adb32 Implement paste creation endpoint 2020-08-23 00:40:20 +02:00
Lukas SP
51765d6f03 Implement basic web server structure and get paste endpoint 2020-08-23 00:32:46 +02:00