API: Add missing auth check to POST /characters

This commit is contained in:
2023-04-17 17:53:12 +02:00
parent aea807ca3c
commit 85cebd2886

View File

@@ -36,6 +36,7 @@ router.get('/characters/:character_id', async (req, res) => {
}); });
router.post('/characters', async (req, res) => { router.post('/characters', async (req, res) => {
if (!isAuthorized(req, res)) { return; }
try { try {
const newCharacterData = req.body; const newCharacterData = req.body;