mirror of
https://github.com/NodeBB/NodeBB.git
synced 2025-10-29 01:56:12 +01:00
refactor(socket.io): deprecate categories.get in favour of api.categories.list
This commit is contained in:
@@ -7,6 +7,10 @@ const helpers = require('../helpers');
|
||||
|
||||
const Categories = module.exports;
|
||||
|
||||
Categories.list = async (req, res) => {
|
||||
helpers.formatApiResponse(200, res, await api.categories.list(req));
|
||||
};
|
||||
|
||||
Categories.get = async (req, res) => {
|
||||
helpers.formatApiResponse(200, res, await api.categories.get(req, req.params));
|
||||
};
|
||||
|
||||
Reference in New Issue
Block a user