ui: update ProductPerformanceProfitability page to enhance table views and tabs management
This commit is contained in:
+25
@@ -939,6 +939,31 @@ func InitRoutes(pgDB *sql.DB, mssql *sql.DB, ml *mailer.GraphMailer) *mux.Router
|
||||
"pricing", "view",
|
||||
wrapV3(routes.GetProductPerformanceSummaryHandler(pgDB)),
|
||||
)
|
||||
bindV3(r, pgDB,
|
||||
"/api/pricing/product-performance/general", "GET",
|
||||
"pricing", "view",
|
||||
wrapV3(routes.GetProductPerformanceGeneralHandler(pgDB)),
|
||||
)
|
||||
bindV3(r, pgDB,
|
||||
"/api/pricing/product-performance/orders", "GET",
|
||||
"pricing", "view",
|
||||
wrapV3(routes.GetProductPerformanceOrdersHandler(pgDB)),
|
||||
)
|
||||
bindV3(r, pgDB,
|
||||
"/api/pricing/product-performance/orders/groups", "GET",
|
||||
"pricing", "view",
|
||||
wrapV3(routes.GetProductPerformanceOrderGroupsHandler(pgDB)),
|
||||
)
|
||||
bindV3(r, pgDB,
|
||||
"/api/pricing/product-performance/orders/product-customers", "GET",
|
||||
"pricing", "view",
|
||||
wrapV3(routes.GetProductPerformanceOrderProductCustomersHandler(pgDB)),
|
||||
)
|
||||
bindV3(r, pgDB,
|
||||
"/api/pricing/product-performance/orders/market-details", "GET",
|
||||
"pricing", "view",
|
||||
wrapV3(routes.GetProductPerformanceOrderMarketDetailsHandler(pgDB)),
|
||||
)
|
||||
bindV3(r, pgDB,
|
||||
"/api/pricing/product-performance/markets", "GET",
|
||||
"pricing", "view",
|
||||
|
||||
Reference in New Issue
Block a user