mirror of
https://github.com/NodeBB/NodeBB.git
synced 2026-06-15 21:30:47 +02:00
refactor(socket.io): deprecate categories.loadMoreSubCategories in favour of api.categories.getChildren
This commit is contained in:
@@ -45,6 +45,12 @@ Categories.getPosts = async (req, res) => {
|
||||
helpers.formatApiResponse(200, res, posts);
|
||||
};
|
||||
|
||||
Categories.getChildren = async (req, res) => {
|
||||
const { cid } = req.params;
|
||||
const { start } = req.query;
|
||||
helpers.formatApiResponse(200, res, await api.categories.getChildren(req, { cid, start }));
|
||||
};
|
||||
|
||||
Categories.setWatchState = async (req, res) => {
|
||||
const { cid } = req.params;
|
||||
let { uid, state } = req.body;
|
||||
|
||||
Reference in New Issue
Block a user