This commit is contained in:
Evert Prants 2020-01-08 00:18:41 +02:00
parent ef48da6478
commit 256c43e6e7
Signed by: evert
GPG Key ID: 1688DA83D222D0B5

View File

@ -151,8 +151,7 @@ async function init () {
}) })
router.get('/shorten', async (req, res) => { router.get('/shorten', async (req, res) => {
res.send('<h1>Basic URL Shortener</h1><form action="" method="post"> \ res.sendFile(path.join(__dirname, 'go.html'))
<input type="url" name="url" placeholder="URL to shorten"/><input type="submit" value="Go!"/></form>')
}) })
router.post('/shorten', async (req, res) => { router.post('/shorten', async (req, res) => {