Skip to content

mlvzk/pastebin-cr

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

8 Commits
 
 
 
 
 
 
 
 
 
 

Repository files navigation

19 LOC pastebin in Crystal

To try it out send a POST request with a form containing a file, the response body is the pastebin ID.

Sample curl:

$ curl -i -X POST -F file=@x.txt localhost:3000
HTTP/1.1 200 OK
Connection: keep-alive
Content-Length: 8

slaa7MN5

To read it, send a GET request to localhost:3000/slaa7MN5

About

19 LOC pastebin in Crystal

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published