templates, main: copy and paste images

Make use of the Clipboard API. Also vivi dis is for you

Signed-off-by: Gunwant Jain <mail@wantguns.dev>
This commit is contained in:
Gunwant Jain
2021-07-08 19:48:05 +05:30
parent 0cd0d24549
commit 7726a0e0ee
2 changed files with 23 additions and 11 deletions

View File

@@ -1,6 +1,7 @@
#[macro_use]
extern crate rocket;
use rocket::data::{Data, ToByteUnit};
use rocket::shield::{Shield, NoSniff};
use rocket::{form::Form, response::Redirect};
use rocket_dyn_templates::Template;
@@ -117,6 +118,8 @@ async fn index() -> Option<Template> {
#[launch]
fn rocket() -> _ {
let shield = Shield::default().disable::<NoSniff>();
rocket::build()
.mount(
"/",
@@ -129,5 +132,6 @@ fn rocket() -> _ {
pretty_retrieve_ext
],
)
.attach(shield)
.attach(Template::fairing())
}