qa: Can export to gitlab

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

View file

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