mirror of
https://github.com/LukasKanka/api_test.git
synced 2026-11-11 06:34:36 +01:00
cicd
This commit is contained in:
1 parent
207c50f51d
commit
e5c6276bab
55 files changed
+28732
No files matched your search
@@ -0,0 +1,23 @@
|
||||
const express = require('express');
|
||||
const router = express.Router();
|
||||
const spells = require('../spells.json');
|
||||
const spellController = require('../controllers/spellsController.js')
|
||||
module.exports = router;
|
||||
const authChecker = require('../middleware/header.js')
|
||||
|
||||
router.get('/', spellController.spells_list);
|
||||
|
||||
router.post('/', authChecker.checkHeader, spellController.new_spell);
|
||||
|
||||
router.get('/:spellId', spellController.specific_spell)
|
||||
|
||||
router.delete('/:spellId', spellController.delete_spell)
|
||||
|
||||
router.delete('/actions/deleteAll', spellController.delete_all)
|
||||
|
||||
router.get('/actions/reset', spellController.reset)
|
||||
|
||||
router.put('/:spellId', authChecker.checkHeader, spellController.update_spell)
|
||||
|
||||
|
||||
|
||||
Reference in new issue
Block a user