Add POST form to shorten link, shortened links to database, configuration file

This commit is contained in:
132ikl 2019-02-22 02:58:38 -05:00
parent 657ee72ecb
commit 513050e131
5 changed files with 150 additions and 12 deletions

20
static/main.html Normal file
View file

@ -0,0 +1,20 @@
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8">
<title>liteshort</title>
</head>
<body>
<form>
Long URL:
<br>
<input name="long" type="url">
<br>
Short URL:
<br>
<input name="short" type="text">
<br> <!-- TODO: Use CSS to do linebreaks -->
<input type="submit" value="Shorten" formmethod="post">
</form>
</body>
</html>