refactor: api categories

This commit is contained in:
Barış Soner Uşaklı
2020-10-16 22:41:38 -04:00
parent e78c498e84
commit 083c74e059
6 changed files with 39 additions and 31 deletions

View File

@@ -162,7 +162,7 @@ define('admin/manage/categories', [
};
Categories.create = function (payload) {
socket.emit('admin.categories.create', payload, function (err, data) {
api.post('/categories', payload, function (err, data) {
if (err) {
return app.alertError(err.message);
}