fixed authorization
This commit is contained in:
@@ -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.")
|
||||
|
||||
Reference in New Issue
Block a user