add permissions route

This commit is contained in:
2026-07-07 00:46:55 +07:00
parent 612c3a6f86
commit 377dd26e3e
8 changed files with 342 additions and 19 deletions
+3
View File
@@ -9,6 +9,7 @@ import (
"evening_detective_server/internal/modules/processor_jwt"
"evening_detective_server/internal/repos/refresh_tokens_repo"
"evening_detective_server/internal/repos/users_repo"
"evening_detective_server/internal/services/ui_service"
"evening_detective_server/internal/services/users_service"
proto "evening_detective_server/proto"
"log"
@@ -54,6 +55,7 @@ func main() {
processorJWT := processor_jwt.NewProcessor(os.Getenv("SECRET"))
refreshTokensRepo := refresh_tokens_repo.NewRefreshTokensRepo(dbpool)
usersService := users_service.NewUsersService(usersRepo, passwordGenerator, emailSender, processorJWT, refreshTokensRepo)
uiService := ui_service.NewUiService()
// Create a listener on TCP port
lis, err := net.Listen("tcp", ":8080")
@@ -82,6 +84,7 @@ func main() {
s,
app.NewServer(
usersService,
uiService,
),
)
// Serve gRPC server