This commit is contained in:
kankys committed 2026-09-13 11:24:09 +02:00
1 parent 207c50f51d
commit e5c6276bab
55 files changed
+28732

No files matched your search

@@ -0,0 +1,9 @@
let spells = require('../controllers/spellsController.js')
exports.spell_not_found = function (req, res, next) {
let result = spells.find(spell => spell._id == req.params.spellId);
if (typeof result == 'undefined') {
return res.status(404).send({ message: "Spell not found" });
}
next();
}