endpoints returning languages, countries and currencies
This commit is contained in:
@@ -97,6 +97,11 @@ func (s *Server) Setup() error {
|
||||
listProducts := s.restricted.Group("/list-products")
|
||||
restricted.ListProductsHandlerRoutes(listProducts)
|
||||
|
||||
// changing the JWT cookies routes (restricted)
|
||||
// in reality it just handles changing user's country and language
|
||||
jwtUpdates := s.restricted.Group("/jwt-updates")
|
||||
restricted.JWTCookiesHandlerRoutes(jwtUpdates)
|
||||
|
||||
// // Restricted routes example
|
||||
// restricted := s.api.Group("/restricted")
|
||||
// restricted.Use(middleware.AuthMiddleware())
|
||||
|
||||
Reference in New Issue
Block a user