aboutsummaryrefslogtreecommitdiff
path: root/api
diff options
context:
space:
mode:
authorkaotisk <kaotisk@arching-kaos.org>2024-01-12 06:40:09 +0200
committerkaotisk <kaotisk@arching-kaos.org>2024-01-12 06:40:09 +0200
commit53b2f67cf0a41df6ddd0063d8ab004034e0fc17d (patch)
treebe93bcc7519a321af8e02d0891286f7733f30b5f /api
parentc047242c82611c3d35b2daf4e6888a3890772ee5 (diff)
downloadarching-kaos-tools-53b2f67cf0a41df6ddd0063d8ab004034e0fc17d.tar.gz
arching-kaos-tools-53b2f67cf0a41df6ddd0063d8ab004034e0fc17d.tar.bz2
arching-kaos-tools-53b2f67cf0a41df6ddd0063d8ab004034e0fc17d.zip
Now handles various request types
Diffstat (limited to 'api')
-rw-r--r--api/routes/index.js4
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;