feat(api): closes #9123 category and topic routes migrated to Write API

This commit is contained in:
Julian Lam
2020-12-29 10:31:53 -05:00
parent 77a5adb616
commit edb8da1ef9
9 changed files with 224 additions and 86 deletions

View File

@@ -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);