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:
2025-06-20 17:53:11 +03:00
parent 8007b11731
commit b72645852b
3 changed files with 49 additions and 23 deletions

View File

@@ -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,
},
}
}