feat: update api public client
This commit is contained in:
parent
cc81599c76
commit
142f048591
|
|
@ -47,6 +47,12 @@ func (_i *ClientsRouter) RegisterClientsRoutes() {
|
|||
clientsController := _i.Controller.Clients
|
||||
|
||||
// define routes
|
||||
// Public routes (no authentication required)
|
||||
_i.App.Route("/clients/public", func(router fiber.Router) {
|
||||
router.Get("/", clientsController.PublicAll)
|
||||
router.Get("/slug/:slug", clientsController.ShowBySlugPublic)
|
||||
})
|
||||
|
||||
_i.App.Route("/clients", func(router fiber.Router) {
|
||||
router.Get("/", clientsController.All)
|
||||
router.Get("/profile", clientsController.ShowWithAuth)
|
||||
|
|
@ -64,10 +70,4 @@ func (_i *ClientsRouter) RegisterClientsRoutes() {
|
|||
router.Get("/:id/logo/url", clientsController.GetLogoURL)
|
||||
router.Get("/logo/:filename", clientsController.ViewLogo)
|
||||
})
|
||||
|
||||
// Public routes (no authentication required)
|
||||
_i.App.Route("/clients/public", func(router fiber.Router) {
|
||||
router.Get("/", clientsController.PublicAll)
|
||||
router.Get("/slug/:slug", clientsController.ShowBySlugPublic)
|
||||
})
|
||||
}
|
||||
|
|
|
|||
Loading…
Reference in New Issue