productos, equivalencias, cross-sell y cantidades
This commit is contained in:
@@ -9,6 +9,7 @@ import { makeListMessages } from "../../0-ui/controllers/messages.js";
|
||||
import { makeSearchProducts, makeListProducts, makeGetProduct, makeSyncProducts, makeUpdateProductUnit, makeBulkUpdateProductUnit, makeUpdateProduct } from "../../0-ui/controllers/products.js";
|
||||
import { makeListAliases, makeCreateAlias, makeUpdateAlias, makeDeleteAlias } from "../../0-ui/controllers/aliases.js";
|
||||
import { makeListRecommendations, makeGetRecommendation, makeCreateRecommendation, makeUpdateRecommendation, makeDeleteRecommendation } from "../../0-ui/controllers/recommendations.js";
|
||||
import { makeListProductQtyRules, makeGetProductQtyRules, makeSaveProductQtyRules } from "../../0-ui/controllers/quantities.js";
|
||||
import { makeDeleteConversation, makeDeleteUser, makeListUsers, makeRetryLast } from "../../0-ui/controllers/admin.js";
|
||||
|
||||
function nowIso() {
|
||||
@@ -70,6 +71,10 @@ export function createSimulatorRouter({ tenantId }) {
|
||||
router.put("/recommendations/:id", makeUpdateRecommendation(getTenantId));
|
||||
router.delete("/recommendations/:id", makeDeleteRecommendation(getTenantId));
|
||||
|
||||
router.get("/quantities", makeListProductQtyRules(getTenantId));
|
||||
router.get("/quantities/:wooProductId", makeGetProductQtyRules(getTenantId));
|
||||
router.put("/quantities/:wooProductId", makeSaveProductQtyRules(getTenantId));
|
||||
|
||||
router.get("/users", makeListUsers(getTenantId));
|
||||
router.delete("/users/:chat_id", makeDeleteUser(getTenantId));
|
||||
|
||||
|
||||
Reference in New Issue
Block a user