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() }