mirror of
https://github.com/kataras/iris.git
synced 2026-01-11 05:55:57 +00:00
URL Shortener using Iris and BoltDB example
Former-commit-id: 059f5fcd6c1df8df11ed2594ee3c1b1ccc13c7b0
This commit is contained in:
@@ -9,12 +9,13 @@
|
||||
<body>
|
||||
<h2>Golang URL Shortener</h2>
|
||||
<h3>{{ .form_result}}</h3>
|
||||
<form action="/url/shorten" method="POST">
|
||||
<form action="/shorten" method="POST">
|
||||
<input type="text" name="url" style="width: 35em;" />
|
||||
<input type="submit" value="Shorten!" />
|
||||
</form>
|
||||
|
||||
<p>{{ .url_count }} URLs shortened</p>
|
||||
{{ if isPositive .url_count }}
|
||||
<p>{{ .url_count }} URLs shortened</p>
|
||||
{{ end }}
|
||||
</body>
|
||||
|
||||
</html>
|
||||
Reference in New Issue
Block a user