mirror of
https://github.com/taigrr/shorturl
synced 2025-01-18 04:03:16 -08:00
Initial Commit
This commit is contained in:
14
templates/index.html
Normal file
14
templates/index.html
Normal 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
10
templates/url.html
Normal 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>
|
||||
Reference in New Issue
Block a user