ñapa para mostrar a web no raíz
This commit is contained in:
parent
48b499c349
commit
5fe2dc0bf6
@ -1,4 +1,44 @@
|
|||||||
|
use axum::response::{Html, IntoResponse, Response};
|
||||||
|
|
||||||
// basic handler that responds with a static string
|
// basic handler that responds with a static string
|
||||||
pub async fn basic() -> &'static str {
|
pub async fn basic() -> Response {
|
||||||
"Jao!"
|
Html(
|
||||||
|
"<pre>
|
||||||
|
SH4R.IN
|
||||||
|
=======
|
||||||
|
|
||||||
|
HTTP POST files here:
|
||||||
|
curl -F'file=@yourfile.png' https://sh4r.in/u
|
||||||
|
You can also POST remote URLs:
|
||||||
|
curl -F'url=http://example.com/image.jpg' https://sh4r.in/u
|
||||||
|
|
||||||
|
File URLs are valid for aproximately 5 days.
|
||||||
|
|
||||||
|
TERMS OF SERVICE
|
||||||
|
----------------
|
||||||
|
|
||||||
|
sh4r.in is NOT a platform for:
|
||||||
|
* piracy
|
||||||
|
* pornography and gore
|
||||||
|
* extremist material of any kind
|
||||||
|
* malware / botnet C&C
|
||||||
|
* anything related to crypto currencies
|
||||||
|
* backups
|
||||||
|
* CI build artifacts
|
||||||
|
* doxxing, database dumps containing personal information
|
||||||
|
* anything illegal
|
||||||
|
|
||||||
|
Uploads found to be in violation of these rules will be removed,
|
||||||
|
and the originating IP address blocked from further uploads.
|
||||||
|
|
||||||
|
UPLOAD DIRECTLY
|
||||||
|
---------------
|
||||||
|
</pre>
|
||||||
|
<form action=\"http://localhost:3000/u\" method=\"POST\" enctype=\"multipart/form-data\">
|
||||||
|
<input class=\"form-control\" type=\"file\" name=\"file\">
|
||||||
|
<input class=\"form-control\" type=\"submit\" value=\"send\">
|
||||||
|
</form>
|
||||||
|
",
|
||||||
|
)
|
||||||
|
.into_response()
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user