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
1 changed files with 1 additions and 2 deletions

View File

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