From 53b2f67cf0a41df6ddd0063d8ab004034e0fc17d Mon Sep 17 00:00:00 2001 From: kaotisk Date: Fri, 12 Jan 2024 06:40:09 +0200 Subject: Now handles various request types --- api/routes/index.js | 4 ++++ 1 file changed, 4 insertions(+) (limited to 'api') diff --git a/api/routes/index.js b/api/routes/index.js index 8aa8ac0..3755524 100644 --- a/api/routes/index.js +++ b/api/routes/index.js @@ -58,4 +58,8 @@ router.route(settings.URL_PREFIX+'/sblk').post(receiveZBlock); router.route(settings.URL_PREFIX+'/szch').post(receiveZChain); router.route('/*').get((req,res)=>{console.log(req.url);res.send({error:"404"})}); +router.route('/*').post((req,res)=>{console.log(req.url);res.send({error:"404"})}); +router.route('/*').put((req,res)=>{console.log(req.url);res.send({error:"404"})}); +router.route('/*').delete((req,res)=>{console.log(req.url);res.send({error:"404"})}); +router.route('/*').patch((req,res)=>{console.log(req.url);res.send({error:"404"})}); module.exports = router; -- cgit v1.2.3