From 9a225410c91ed6a0615fc5c0d5ce6790b027f3ae Mon Sep 17 00:00:00 2001 From: Vincent Breitmoser Date: Fri, 24 May 2019 01:01:24 +0200 Subject: [PATCH] Rework API --- dist/templates/upload/upload-ok.html.hbs | 2 +- dist/templates/upload/upload.html.hbs | 2 +- hagrid-routes.conf | 6 +- src/mail.rs | 2 +- src/main.rs | 1 + src/web/hkp.rs | 6 +- src/web/mod.rs | 42 +- src/web/upload.rs | 560 ----------------------- src/web/vks.rs | 282 ++++++++++++ src/web/vks_api.rs | 112 +++++ src/web/vks_web.rs | 310 +++++++++++++ 11 files changed, 738 insertions(+), 587 deletions(-) delete mode 100644 src/web/upload.rs create mode 100644 src/web/vks.rs create mode 100644 src/web/vks_api.rs create mode 100644 src/web/vks_web.rs diff --git a/dist/templates/upload/upload-ok.html.hbs b/dist/templates/upload/upload-ok.html.hbs index b867782..badc9fd 100644 --- a/dist/templates/upload/upload-ok.html.hbs +++ b/dist/templates/upload/upload-ok.html.hbs @@ -26,7 +26,7 @@ {{#if requested}} Verification Pending {{else}} -
+ diff --git a/dist/templates/upload/upload.html.hbs b/dist/templates/upload/upload.html.hbs index b6f15fb..0d5f60b 100644 --- a/dist/templates/upload/upload.html.hbs +++ b/dist/templates/upload/upload.html.hbs @@ -6,7 +6,7 @@ After upload, you can also make it searchable by e-mail address.

- +