feat: applied auth on go services

This commit is contained in:
2025-01-04 14:10:20 +00:00
parent 02af66b585
commit 55edac6abe
8 changed files with 182 additions and 112 deletions
+4 -4
View File
@@ -31,10 +31,10 @@ func main() {
authRepo := repository.NewInMemoryAuthRepositoryImpl("secret")
// Initialize services
userService := services.NewUserService(userRepo)
projectService := services.NewProjectService(projectRepo)
projectTaskService := services.NewProjectTaskService(projectTaskRepo)
timeEntryService := services.NewTimeEntryService(timeEntryRepo)
userService := services.NewUserService(authRepo, userRepo)
projectService := services.NewProjectService(authRepo, projectRepo)
projectTaskService := services.NewProjectTaskService(authRepo, projectTaskRepo)
timeEntryService := services.NewTimeEntryService(authRepo, timeEntryRepo)
authService := services.NewAuthService(authRepo, userRepo)
// Initialize and start the server