Commit Graph

4 Commits

Author SHA1 Message Date
Gunwant Jain
78d046afbd main: add more routes for pretty pasting
cleaned up code and added a route for signifying code language
explicitly at `/p/<filename>.<ext>`
Also async-ified the server after upgrading Rocket to 0.5-rc1

Signed-off-by: Gunwant Jain <mail@wantguns.dev>
2021-07-08 18:48:01 +05:30
Gunwant Jain
1bc532d237 index: improve the usage guide
Signed-off-by: Gunwant Jain <mail@wantguns.dev>
2020-12-30 03:41:54 +05:30
Gunwant Jain
66ea75de7f add /p/<id> routes
This is to work with text/plain type files only

Signed-off-by: Gunwant Jain <mail@wantguns.dev>
2020-12-29 17:37:29 +05:30
Gunwant Jain
805e4ce7d2 initialise
routes:
    GET  /<id>
    POST /

Signed-off-by: Gunwant Jain <mail@wantguns.dev>
2020-12-29 15:44:15 +05:30