Browse Source

[create] Added form to index template.

pull/1/head
Shashank Kaul 5 years ago
parent
commit
cc6a20f867
  1. 6
      public/index.html

6
public/index.html

@ -7,6 +7,12 @@
<body> <body>
<h1>⚡ :magnet:</h1> <h1>⚡ :magnet:</h1>
<form action="/api" method="POST">
<p>URI: <input type="text" name="uri"><br/></p>
<p>Title (optional): <input type="text" name="title"><br/></p>
<button type="submit">Create</button>
</form>
<hr />
<p>POST to <code>/api</code> with this request body: <p>POST to <code>/api</code> with this request body:
<pre> <pre>
{ {

Loading…
Cancel
Save