Merge remote-tracking branch 'origin/master'

This commit is contained in:
M_Kececi
2026-06-18 18:33:38 +03:00
parent 6fc7313ae6
commit 4d8a659650
7 changed files with 984 additions and 68 deletions

View File

@@ -785,6 +785,36 @@ func InitRoutes(pgDB *sql.DB, mssql *sql.DB, ml *mailer.GraphMailer) *mux.Router
"order", "view",
http.HandlerFunc(routes.GetProductImageContentHandler(pgDB)),
)
bindV3(r, pgDB,
"/api/order/price-list/products", "GET",
"order", "view",
wrapV3(http.HandlerFunc(routes.GetProductPricingListHandler)),
)
bindV3(r, pgDB,
"/api/order/price-list/options", "GET",
"order", "view",
wrapV3(http.HandlerFunc(routes.GetProductPricingFilterOptionsHandler)),
)
bindV3(r, pgDB,
"/api/order/price-list/campaigns", "GET",
"order", "view",
wrapV3(routes.GetWholesaleCampaignsHandler(pgDB)),
)
bindV3(r, pgDB,
"/api/order/price-list/variant-rows", "GET",
"order", "view",
wrapV3(routes.GetWholesaleCampaignVariantRowsHandler(pgDB, mssql)),
)
bindV3(r, pgDB,
"/api/order/price-list/export-excel", "POST",
"order", "view",
wrapV3(http.HandlerFunc(routes.ExportProductPriceListExcelHandler(pgDB))),
)
bindV3(r, pgDB,
"/api/order/price-list/export-pdf", "POST",
"order", "view",
wrapV3(http.HandlerFunc(routes.ExportProductPriceListPDFHandler(pgDB))),
)
bindV3(r, pgDB,
"/api/product-size-match/rules", "GET",
"order", "view",