From 5fe2dc0bf60e44b26ed0f5d76fcc4630744006a4 Mon Sep 17 00:00:00 2001 From: serxoz Date: Fri, 21 Oct 2022 16:54:12 +0200 Subject: [PATCH] =?UTF-8?q?=C3=B1apa=20para=20mostrar=20a=20web=20no=20ra?= =?UTF-8?q?=C3=ADz?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/vistas/root.rs | 44 ++++++++++++++++++++++++++++++++++++++++++-- 1 file changed, 42 insertions(+), 2 deletions(-) diff --git a/src/vistas/root.rs b/src/vistas/root.rs index 663a803..d5112a9 100644 --- a/src/vistas/root.rs +++ b/src/vistas/root.rs @@ -1,4 +1,44 @@ +use axum::response::{Html, IntoResponse, Response}; + // basic handler that responds with a static string -pub async fn basic() -> &'static str { - "Jao!" +pub async fn basic() -> Response { + Html( + "
+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
+---------------
+
+
+ + +
+", + ) + .into_response() }