Add PNG download of QR-Code

This commit is contained in:
2021-02-07 17:49:13 +01:00
parent b7f7c429de
commit 325cdfc9d4
5 changed files with 270 additions and 19 deletions
+4
View File
@@ -126,6 +126,10 @@ async fn main() -> std::io::Result<()> {
web::scope("/view")
.route("/{redirect_id}", web::get().to(views::view_link)),
)
.service(
web::scope("/download")
.route("/png/{redirect_id}", web::get().to(views::download_png)),
)
// login to the admin area
.route("/login/", web::get().to(views::login))
.route("/login/", web::post().to(views::process_login)),