|
|
@@ -15,6 +15,7 @@ import {
|
|
|
addProduct as _addProduct
|
|
|
} from "../actions/menu";
|
|
|
|
|
|
+//#region Category Controllers
|
|
|
export const addCategory = async (req: AuthRequest, res: Response): Promise<void> => {
|
|
|
const result = await _addCategory(req.context!.userID, req.body);
|
|
|
|
|
|
@@ -57,7 +58,9 @@ export const getCategories = async (req: AuthRequest, res: Response): Promise<vo
|
|
|
}),
|
|
|
});
|
|
|
};
|
|
|
+//#endregion
|
|
|
|
|
|
+//#region Product Controllers
|
|
|
export const addProduct = async (req: AuthRequest, res: Response): Promise<void> => {
|
|
|
const result = await _addProduct(req.body, req.context!);
|
|
|
|
|
|
@@ -108,4 +111,5 @@ export const deleteProduct = async (req: AuthRequest, res: Response): Promise<vo
|
|
|
payload: result.payload
|
|
|
})
|
|
|
});
|
|
|
-};
|
|
|
+};
|
|
|
+// #endregion
|