diff --git a/src/main.rs b/src/main.rs index 16d72a12bfc8ed862651acca202b8da68d3bdf23..f16d774d53da18d62f1201ea18ec41db33d3d666 100644 --- a/src/main.rs +++ b/src/main.rs @@ -135,6 +135,7 @@ async fn main() { .push(Router::with_path("/dmca").get(handlers::serve_static::serve_static)) .push(Router::with_path("/welcome").get(handlers::serve_static::serve_static)) .push(Router::with_path("/metrics").get(handlers::serve_metrics::serve_metrics)) + // Might want to actually make a .ico instead of serving a webp image. .push(Router::with_path("/favicon.ico").get(StaticFile::new("static/favicon32.webp"))) .push(Router::with_path("/robots.txt").get(StaticFile::new("static/robots.txt"))) // Static File Serving diff --git a/static/example.com.sxcu b/static/example.com.sxcu new file mode 100644 index 0000000000000000000000000000000000000000..8ed870a4791756519a56195ae78a139cc9518648 --- /dev/null +++ b/static/example.com.sxcu @@ -0,0 +1,9 @@ +{ + "Name": "example.com file uploader", + "DestinationType": "FileUploader", + "RequestURL": "https://example.com", + "FileFormName": "file", + "ResponseType": "Text", + "URL": "$json:url$", + "DeletionURL": "$json:deletionurl$" +} diff --git a/templates/localhost:8282/upload.html b/templates/localhost:8282/upload.html index d6aba24de710deed01446297dd1e5783850a6f20..6f5819a3b1f8891c707c635ed1e2ed55ab301ae8 100644 --- a/templates/localhost:8282/upload.html +++ b/templates/localhost:8282/upload.html @@ -26,6 +26,9 @@ <p class="note">This storage is not permanent, check the FAQ page for details<br>By uploading you agree to the ToS and Privacy Policy</p> <ul class="links"> + <li> + <a href="/my_files">Your Files</a> + </li> <li> <a href="/services">Services</a> </li>