refactor: profile controller;
experiment: figured out a way to add auth middleware to individual methods in controllers, bypassing route group middleware if needed
This commit is contained in:
@@ -25,6 +25,7 @@ type RouteGroup struct {
|
||||
func NewRouteGroups(
|
||||
authController controllers.AuthController,
|
||||
serviceController controllers.ServiceController,
|
||||
profileController controllers.ProfileController,
|
||||
) []RouteGroup {
|
||||
return []RouteGroup{
|
||||
{
|
||||
@@ -35,5 +36,9 @@ func NewRouteGroups(
|
||||
BasePath: "/service",
|
||||
Router: serviceController,
|
||||
},
|
||||
{
|
||||
BasePath: "/profile",
|
||||
Router: profileController,
|
||||
},
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user