add /p/<id> routes

This is to work with text/plain type files only

Signed-off-by: Gunwant Jain <mail@wantguns.dev>
This commit is contained in:
Gunwant Jain
2020-12-29 17:37:29 +05:30
parent 805e4ce7d2
commit 66ea75de7f
4 changed files with 765 additions and 23 deletions

View File

@@ -9,3 +9,11 @@ edition = "2018"
[dependencies]
rand = "0.8.0"
rocket = "0.4.6"
rocket_contrib = { version = "0.4.6", features = ["tera_templates"] }
tree_magic = "0.2.3"
# [dependencies.rocket_contrib]
# version = "0.4.6"
# default-features = false
# features = ["tera_templates"]