Paste tool made in deno
MIT License
Paste tool made in deno
Deno
git clone https://github.com/<your-username>/paste.land
cd paste.land
deno run --allow-net mod.ts
The output should be
Listening on http://localhost:8000/
Head over to http://localhost:8000/
on your PC or use some API tool like curl, Insomnia or Postman. We will be using curl in the following examples.
GET /
-> Returns Hello Worldcurl http://localhost:8000/
GET /:id
-> Retrieve the paste with the given id as plain-text.curl http://localhost:8000/<id>
POST /
-> Send the data in plaintext along. Will respond with a link to the paste.curl --data "My first paste" -H "Content-Type: text/plain" -X POST http://localhost:8000/
Refer CONTRIBUTING.md