fancify
This commit is contained in:
parent
ef48da6478
commit
256c43e6e7
@ -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) => {
|
||||
|
Loading…
Reference in New Issue
Block a user