mirror of
https://git.ikl.sh/132ikl/liteshort.git
synced 2023-08-10 21:13:04 +03:00
Add API and clean code
This commit is contained in:
@@ -12,11 +12,15 @@
|
||||
<div class="form">
|
||||
<h2>{{ config.site_name }}</h2>
|
||||
<form class="pure-form">
|
||||
<input name="long" type="url" placeholder="Long URL">
|
||||
<p>
|
||||
<input name="short" type="text" placeholder="Custom link (optional)">
|
||||
<input name="long" type="url" placeholder="Long URL">
|
||||
</p>
|
||||
<p>
|
||||
<button type="submit" class="pure-button pure-button-primary" formmethod="post">Shorten</button>
|
||||
<input name="short" type="text" placeholder="Custom link (optional)">
|
||||
</p>
|
||||
<p>
|
||||
<button type="submit" class="pure-button pure-button-primary" formmethod="post">Shorten</button>
|
||||
</p>
|
||||
</form>
|
||||
</div>
|
||||
{% if result is defined and result[0] %}
|
||||
|
||||
Reference in New Issue
Block a user