c9132e836a
feat: markdown rendering /m/<id>
Build CI / pre-build-checks (push) Failing after 16s
Build CI / build (amd64) (push) Has been skipped
Build CI / build (arm64) (push) Has been skipped
2026-04-21 16:24:08 +02:00
Gunwant Jain
1e0e3b319c
bin v2.2.1
...
Signed-off-by: Gunwant Jain <mail@wantguns.dev >
2022-04-23 05:31:35 +05:30
Gunwant Jain
efc1a9df58
bin v2.2.0
...
Signed-off-by: Gunwant Jain <mail@wantguns.dev >
2022-02-08 02:00:20 +05:30
Leonora Tindall
2ab7ddb9c8
Add cache-busting and server headers with a wrapper.
...
In order to support custom headers for various response types,
this commit adds a wrapper type, ResponseWrapper, which can service
all types of response in `bin`.
For paste objects, the preferred `Last-Modified` is used, so that caches
can compare their exact timings with the HEAD response when
revalidating.
For static objects, an `ETag` is used instead, based on the Cargo version
and git hash of the codebase at compilation time; a `build.rs` is used
for this.
2022-02-05 06:20:33 +05:30
Gunwant Jain
fa9a97ce9c
Add automated Fly.io deployments
...
Signed-off-by: Gunwant Jain <mail@wantguns.dev >
2022-01-21 12:36:36 +05:30
Gunwant Jain
6961ed59b4
main: Add arguments and the respective parsing
...
Signed-off-by: Gunwant Jain <mail@wantguns.dev >
2022-01-18 15:47:54 +05:30
Gunwant Jain
892e84348d
static_files: embed files in-binary
...
Signed-off-by: Gunwant Jain <mail@wantguns.dev >
2022-01-18 12:16:07 +05:30
Gunwant Jain
33583b71d4
cargo update, fmt and add rust_embed crate
...
Signed-off-by: Gunwant Jain <mail@wantguns.dev >
2022-01-16 23:11:38 +05:30
Gunwant Jain
0cd0d24549
templates: add drag and drop func, use ayu dark
...
Use a more man-like description
Signed-off-by: Gunwant Jain <mail@wantguns.dev >
2021-07-08 18:51:20 +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