Add a basic welcome page when paste-id is missing

Signed-off-by: baalajimaestro <me@baalajimaestro.me>
This commit is contained in:
baalajimaestro 2023-05-07 22:39:30 +05:30
parent 300b0c9a3c
commit b22bd2dab1
Signed by: baalajimaestro
GPG key ID: F93C394FE9BBAFD5

View file

@ -74,7 +74,7 @@ async fn paste_render(data: Data<Template>, paste: Query<Paste>) -> impl Respond
.unwrap();
}
} else {
paste_content = "Provide a Paste ID".to_string();
paste_content = "This is a no-nonsense Pastebin Server, written in Rust. It serves the content from files on a GitLab Private Repository. Please look into the repository for hosting your own copy of this".to_string();
}
context.insert("paste_content", &paste_content);
if paste.parse_md.is_some() {