upload: fix template
This commit is contained in:
parent
1f2c4047d6
commit
3355c7e5d4
|
@ -15,6 +15,6 @@
|
||||||
{{ text "Need more info? Check our <a target=\"_blank\" href=\"/about\">intro</a> and <a target=\"_blank\" href=\"/about/usage\">usage guide</a>!" }}
|
{{ text "Need more info? Check our <a target=\"_blank\" href=\"/about\">intro</a> and <a target=\"_blank\" href=\"/about/usage\">usage guide</a>!" }}
|
||||||
</p>
|
</p>
|
||||||
|
|
||||||
<script src="/assets/js/upload.js" async />
|
<script src="/assets/js/upload.js" async></script>
|
||||||
</div>
|
</div>
|
||||||
{{/layout}}
|
{{/layout}}
|
||||||
|
|
|
@ -187,7 +187,7 @@ impl MyResponse {
|
||||||
|
|
||||||
#[get("/upload")]
|
#[get("/upload")]
|
||||||
pub fn upload() -> MyResponse {
|
pub fn upload() -> MyResponse {
|
||||||
MyResponse::ok("upload/upload", ())
|
MyResponse::ok_bare("upload/upload")
|
||||||
}
|
}
|
||||||
|
|
||||||
#[post("/upload/submit", format = "multipart/form-data", data = "<data>")]
|
#[post("/upload/submit", format = "multipart/form-data", data = "<data>")]
|
||||||
|
|
Loading…
Reference in New Issue