qa: Can export to gitlab

This commit is contained in:
nemunaire 2023-11-25 13:43:41 +01:00
commit 60a34d3ced
13 changed files with 463 additions and 3 deletions

View file

@ -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(""))