Commit Graph

7 Commits

Author SHA1 Message Date
Gunwant Jain
ea790a066a Dockerised the app
Good use of env vars now

Signed-off-by: Gunwant Jain <mail@wantguns.dev>
2020-12-30 04:20:39 +05:30
Gunwant Jain
5fc487c705 use environment variables to configure settings
Signed-off-by: Gunwant Jain <mail@wantguns.dev>
2020-12-30 04:19:46 +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
c138e9ad3e fix MIME types and add examples
cpp files were getting recognised as "text/csrc". checking subtrings is
a better way to compare MIME types.

Signed-off-by: Gunwant Jain <mail@wantguns.dev>
2020-12-29 21:37:54 +05:30
Gunwant Jain
855a0faec2 routes: implement syntax highlighting for plaintext files
Signed-off-by: Gunwant Jain <mail@wantguns.dev>
2020-12-29 19:35:21 +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