qa: Can export to gitlab
This commit is contained in:
parent
0a22d09947
commit
60a34d3ced
13 changed files with 463 additions and 3 deletions
|
@ -63,5 +63,10 @@ func listExercices(c *gin.Context) {
|
|||
}
|
||||
|
||||
func showExercice(c *gin.Context) {
|
||||
c.JSON(http.StatusOK, c.MustGet("exercice"))
|
||||
if adminLink == "" {
|
||||
c.JSON(http.StatusOK, c.MustGet("exercice"))
|
||||
return
|
||||
}
|
||||
|
||||
fwdAdminRequest(c, fmt.Sprintf("/api/exercices/%s", string(c.Param("eid"))))
|
||||
}
|
||||
|
|
Reference in a new issue