0
Fork 0
mirror of https://github.com/ninenines/cowboy.git synced 2025-07-14 12:20:24 +00:00
cowboy/examples/rest_pastebin/priv/index.html
Adam Cammack d7b83db92e Add a more involved REST example
A pastebin type application that can optionally highlight the output as
both text and HTML.
2013-02-07 11:00:26 -06:00

22 lines
508 B
HTML

<!DOCTYPE html>
<html>
<head>
<title>Simple Pastebin</title>
</head>
<body>
<h1>Simple Pastebin</h1>
<p>
You can paste your text into the text field to submit, or you can
capture the output of a command with:
</p>
<code>
<i>command</i> | curl -i --data-urlencode paste@- localhost:8080
</code>
<form action="/" method="post">
<textarea cols="80" rows="15" name="paste"></textarea>
<div>
<button type="submit">Upload your code</button>
</div>
</form>
</body>
</html>