mirror of
https://github.com/steveiliop56/tinyauth.git
synced 2025-12-10 18:26:37 +00:00
wip
This commit is contained in:
@@ -64,10 +64,18 @@ func setupUserController(t *testing.T, middlewares *[]gin.HandlerFunc) (*gin.Eng
|
||||
SessionCookieName: "tinyauth-session",
|
||||
}, nil, nil, database)
|
||||
|
||||
// Access log service
|
||||
als := service.NewAccessLogService(&service.AccessLogServiceConfig{
|
||||
LogFile: "",
|
||||
LogJson: true,
|
||||
})
|
||||
|
||||
assert.NilError(t, als.Init())
|
||||
|
||||
// Controller
|
||||
ctrl := controller.NewUserController(controller.UserControllerConfig{
|
||||
CookieDomain: "localhost",
|
||||
}, group, authService)
|
||||
}, group, authService, als)
|
||||
ctrl.SetupRoutes()
|
||||
|
||||
return router, recorder
|
||||
|
||||
Reference in New Issue
Block a user