Update endpoint URL

main
Ashelyn Dawn 4 years ago
parent 36846148e6
commit 05246d8871

@ -18,7 +18,7 @@ transport.verify()
process.exit(1);
})
router.post('/:id', async (ctx) => {
router.post('/api/contact/:id', async (ctx) => {
const {params: {id}, request, response} = ctx
if(!contacts[id]){
response.status = 400

Loading…
Cancel
Save