mirror of
https://github.com/NodeBB/NodeBB.git
synced 2025-10-28 17:46:16 +01:00
feat(api): closes #9123 category and topic routes migrated to Write API
This commit is contained in:
@@ -15,6 +15,10 @@ const hasAdminPrivilege = async (uid) => {
|
||||
}
|
||||
};
|
||||
|
||||
Categories.get = async (req, res) => {
|
||||
helpers.formatApiResponse(200, res, await api.categories.get(req, req.params));
|
||||
};
|
||||
|
||||
Categories.create = async (req, res) => {
|
||||
await hasAdminPrivilege(req.uid);
|
||||
|
||||
|
||||
Reference in New Issue
Block a user