diff --git a/src/main.rs b/src/main.rs index d992863..c349dab 100644 --- a/src/main.rs +++ b/src/main.rs @@ -68,45 +68,10 @@ fn upload(paste: Data) -> Result { } #[get("/")] -fn index() -> &'static str { -" -USAGE ------ - - POST / - - accepts raw data in the body of the request and responds with a URL - of a page containing the body's content - - GET / - - retrieves the content for the paste with id `` - - GET /p/ - - retrieves the HTML page with syntax-highlighted content for the paste with id `` - -EXAMPLES --------- - - Paste a file named 'file.txt' using cURL: - - curl --data-binary @file.txt https://bin.wantguns.dev - - Paste from stdin using cURL: - - echo \"Hello, world.\" | curl --data-binary @- https://bin.wantguns.dev - - Add this to your .zshrc to implement a quicker usage. - - function paste() { - local file=${1:-/dev/stdin} - curl --data-binary @${file} https://bin.wantguns.dev - } - - If the uploaded data binary is parsed as \"text/*\", then the paste will be syntax - highlighted -" +fn index() -> Option