fix: add example sharex config, and add /my_files url on main page
parent
e70bd1c353
commit
3438a6552f
|
@ -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
|
||||
|
|
|
@ -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$"
|
||||
}
|
|
@ -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>
|
||||
|
|
Loading…
Reference in New Issue