fix: add example sharex config, and add /my_files url on main page
format, check and test / cargo fmt (push) Failing after 3m17s Details
format, check and test / cargo test (push) Has started running Details

main
Volkor 2023-07-07 23:38:51 +10:00
parent e70bd1c353
commit 3438a6552f
Signed by: Volkor
SSH Key Fingerprint: SHA256:taX3XcC6grYv7+eTzBsIUNCVFgMzh7gkVgxliSh69ek
3 changed files with 13 additions and 0 deletions

View File

@ -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

9
static/example.com.sxcu Normal file
View File

@ -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$"
}

View File

@ -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>