Added URL submission

This commit is contained in:
2018-11-17 16:47:39 +00:00
committed by cdramey
parent 412c625916
commit 5c669c8b93
9 changed files with 175 additions and 62 deletions

24
assets/submit.html Normal file
View File

@ -0,0 +1,24 @@
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="utf-8">
<title>qurl.org</title>
<meta name="viewport" content="width=device-width, initial-scale=1.0, maximum-scale=1.0, user-scalable=no">
<link rel="stylesheet" media="screen" href="qurl.css">
</head>
<body>
<div id="c">
<div id="m">
<div>{{if .Message}}{{.Message}}{{end}}</div>
<div>{{if .URL}}<a href="{{.URL}}">{{.URL}}</a>{{end}}</div>
</div>
qurl.org is a simple url shortening service, in the same vein as
<a href="https://bit.ly">bit.ly</a> and
<a href="https://tinyurl.com">tinyurl.com</a>.
qurl.org is <a href="http://binarythought.com/qurl/LICENSE">open source</a>,
it's code is <a href="https://binarythought.com/fossils/qurl/">freely available</a>
and has an <a href="api/index.html">easy to use API</a>.
</div>
</body>
</html>