fixed authorization

This commit is contained in:
2025-12-09 15:42:35 +08:00
parent ca49e8e24b
commit 5743dbf22d
15 changed files with 1936 additions and 62 deletions
+6
View File
@@ -3,6 +3,7 @@ package main
import (
"authorization/db"
"authorization/docs"
"authorization/handlers"
"authorization/helper"
"authorization/models"
"authorization/redisclient"
@@ -216,6 +217,11 @@ func main() {
}
go collectDBMetrics(database)
// Initialize authorization service
handlers.InitAuthService()
helper.LogInfo("INFO: Authorization service initialized with caching")
router := mux.NewRouter()
routes.SetupRoutes(router, database)
helper.LogInfo("INFO: Database initialized successfully.")