// GetApps return the apps on the server func GetApps(s storage.Storage) func(c *gin.Context) { return func(c *gin.Context) { apps := s.GetApps() c.IndentedJSON(http.StatusOK, &common.Apps{apps}) } }