Add a basic welcome page when paste-id is missing
Signed-off-by: baalajimaestro <me@baalajimaestro.me>
This commit is contained in:
parent
300b0c9a3c
commit
b22bd2dab1
1 changed files with 1 additions and 1 deletions
|
@ -74,7 +74,7 @@ async fn paste_render(data: Data<Template>, paste: Query<Paste>) -> impl Respond
|
||||||
.unwrap();
|
.unwrap();
|
||||||
}
|
}
|
||||||
} else {
|
} 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);
|
context.insert("paste_content", &paste_content);
|
||||||
if paste.parse_md.is_some() {
|
if paste.parse_md.is_some() {
|
||||||
|
|
Loading…
Reference in a new issue