qa: Can export to gitlab
This commit is contained in:
parent
0a22d09947
commit
60a34d3ced
13 changed files with 463 additions and 3 deletions
|
|
@ -22,8 +22,13 @@ func NewApp(baseURL string) App {
|
|||
gin.ForceConsoleColor()
|
||||
router := gin.Default()
|
||||
|
||||
api.InitializeGitLabOIDC(baseURL)
|
||||
|
||||
store := memstore.NewStore([]byte("secret"))
|
||||
router.Use(sessions.Sessions("qa-session", store))
|
||||
router.Use(func(c *gin.Context) {
|
||||
c.Set("baseurl", baseURL)
|
||||
})
|
||||
|
||||
api.DeclareRoutes(router.Group(""))
|
||||
|
||||
|
|
|
|||
Reference in a new issue