Parcourir la source

feat: add mode for /info api (#19264)

tags/1.4.0
Good Wood il y a 6 mois
Parent
révision
0b44791eae
Aucun compte lié à l'adresse e-mail de l'auteur
1 fichiers modifiés avec 1 ajouts et 1 suppressions
  1. 1
    1
      api/controllers/service_api/app/app.py

+ 1
- 1
api/controllers/service_api/app/app.py Voir le fichier

def get(self, app_model: App): def get(self, app_model: App):
"""Get app information""" """Get app information"""
tags = [tag.name for tag in app_model.tags] tags = [tag.name for tag in app_model.tags]
return {"name": app_model.name, "description": app_model.description, "tags": tags}
return {"name": app_model.name, "description": app_model.description, "tags": tags, "mode": app_model.mode}




api.add_resource(AppParameterApi, "/parameters") api.add_resource(AppParameterApi, "/parameters")

Chargement…
Annuler
Enregistrer