diff options
Diffstat (limited to 'api')
-rw-r--r-- | api/routes/index.js | 4 |
1 files changed, 4 insertions, 0 deletions
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; |