Skip to content
Snippets Groups Projects
Verified Commit 3438a655 authored by Volkor Barbarian Warrior's avatar Volkor Barbarian Warrior
Browse files

fix: add example sharex config, and add /my_files url on main page

parent e70bd1c3
No related branches found
No related tags found
No related merge requests found
...@@ -135,6 +135,7 @@ async fn main() { ...@@ -135,6 +135,7 @@ async fn main() {
.push(Router::with_path("/dmca").get(handlers::serve_static::serve_static)) .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("/welcome").get(handlers::serve_static::serve_static))
.push(Router::with_path("/metrics").get(handlers::serve_metrics::serve_metrics)) .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("/favicon.ico").get(StaticFile::new("static/favicon32.webp")))
.push(Router::with_path("/robots.txt").get(StaticFile::new("static/robots.txt"))) .push(Router::with_path("/robots.txt").get(StaticFile::new("static/robots.txt")))
// Static File Serving // Static File Serving
......
{
"Name": "example.com file uploader",
"DestinationType": "FileUploader",
"RequestURL": "https://example.com",
"FileFormName": "file",
"ResponseType": "Text",
"URL": "$json:url$",
"DeletionURL": "$json:deletionurl$"
}
...@@ -26,6 +26,9 @@ ...@@ -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 <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> Privacy Policy</p>
<ul class="links"> <ul class="links">
<li>
<a href="/my_files">Your Files</a>
</li>
<li> <li>
<a href="/services">Services</a> <a href="/services">Services</a>
</li> </li>
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment