From 3355c7e5d425ceac2a864e889b9dcd941c476f1a Mon Sep 17 00:00:00 2001 From: Vincent Breitmoser Date: Sun, 29 Sep 2019 11:03:43 +0200 Subject: [PATCH] upload: fix template --- dist/templates/upload/upload.html.hbs | 2 +- src/web/vks_web.rs | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/dist/templates/upload/upload.html.hbs b/dist/templates/upload/upload.html.hbs index c8a4edf..360eee1 100644 --- a/dist/templates/upload/upload.html.hbs +++ b/dist/templates/upload/upload.html.hbs @@ -15,6 +15,6 @@ {{ text "Need more info? Check our intro and usage guide!" }}

- {{/layout}} diff --git a/src/web/vks_web.rs b/src/web/vks_web.rs index 290e373..9c32f1d 100644 --- a/src/web/vks_web.rs +++ b/src/web/vks_web.rs @@ -187,7 +187,7 @@ impl MyResponse { #[get("/upload")] pub fn upload() -> MyResponse { - MyResponse::ok("upload/upload", ()) + MyResponse::ok_bare("upload/upload") } #[post("/upload/submit", format = "multipart/form-data", data = "")]