diff options
author | kaotisk <kaotisk@arching-kaos.org> | 2024-01-12 06:40:09 +0200 |
---|---|---|
committer | kaotisk <kaotisk@arching-kaos.org> | 2024-01-12 06:40:09 +0200 |
commit | 53b2f67cf0a41df6ddd0063d8ab004034e0fc17d (patch) | |
tree | be93bcc7519a321af8e02d0891286f7733f30b5f /api/routes | |
parent | c047242c82611c3d35b2daf4e6888a3890772ee5 (diff) | |
download | arching-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/routes')
-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; |