|
@@ -71,7 +71,7 @@ categoryRoutes.post('/add/', jwtAuthentication, async (request, response) => { |
|
|
} |
|
|
} |
|
|
}); |
|
|
}); |
|
|
|
|
|
|
|
|
response.send(200); |
|
|
|
|
|
|
|
|
response.status(200); |
|
|
response.send(newCategory.insertedId.toHexString()); |
|
|
response.send(newCategory.insertedId.toHexString()); |
|
|
} catch(e) { |
|
|
} catch(e) { |
|
|
response.sendStatus(500); |
|
|
response.sendStatus(500); |
|
|