Merge remote-tracking branch 'origin/master'
This commit is contained in:
30
svc/main.go
30
svc/main.go
@@ -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",
|
||||
|
||||
Reference in New Issue
Block a user