1
0
mirror of https://github.com/taigrr/shorturl synced 2025-01-18 04:03:16 -08:00

Initial Commit

This commit is contained in:
2017-07-02 22:51:46 -07:00
commit 3380bc5e65
14 changed files with 482 additions and 0 deletions

14
templates/index.html Normal file
View File

@@ -0,0 +1,14 @@
<html>
<head>
<title>shorturl</title>
</head>
<body>
<p>Enter your long URL here:</p>
<form method="POST" action="">
<input type="text" name="url">
<input type="submit">
</form>
</body>
</html>

10
templates/url.html Normal file
View File

@@ -0,0 +1,10 @@
<html>
<head>
<title>shorturl</title>
</head>
<body>
<p>Your short url is: <a href="/{{.ID}}">{{.ID}}</a></p>
</body>
</html>