refactor(socket.io): deprecate categories.get in favour of api.categories.list

This commit is contained in:
Julian Lam
2023-10-19 10:21:51 -04:00
parent 52b78e83a8
commit 96046373da
4 changed files with 24 additions and 9 deletions

View File

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