Add has_contentdb_translation to Language, add API
This commit is contained in:
@@ -648,6 +648,12 @@ def versions():
|
||||
for rel in MinetestRelease.query.all() if rel.get_actual() is not None])
|
||||
|
||||
|
||||
@bp.route("/api/languages/")
|
||||
@cors_allowed
|
||||
def languages():
|
||||
return jsonify([x.as_dict() for x in Language.query.all()])
|
||||
|
||||
|
||||
@bp.route("/api/dependencies/")
|
||||
@cors_allowed
|
||||
def all_deps():
|
||||
|
||||
Reference in New Issue
Block a user