feat: creat main products query

This commit is contained in:
2026-03-26 15:59:13 +01:00
parent df14eb5ae4
commit bd97ed1a3b
17 changed files with 959 additions and 229 deletions

View File

@@ -97,6 +97,8 @@ func (s *Server) Setup() error {
listProducts := s.restricted.Group("/list-products")
restricted.ListProductsHandlerRoutes(listProducts)
restricted.ProductsHandlerRoutes(s.restricted)
// locale selector (restricted)
// this is basically for changing user's selected language and country
localeSelector := s.restricted.Group("/langs-and-countries")
@@ -118,6 +120,8 @@ func (s *Server) Setup() error {
return c.SendStatus(fiber.StatusNotFound)
})
restricted.CurrencyHandlerRoutes(s.restricted)
// // Restricted routes example
// restricted := s.api.Group("/restricted")
// restricted.Use(middleware.AuthMiddleware())