Skip to content

Commit 6925b14

Browse files
authored
add contributors api route (#650)
1 parent faeeff0 commit 6925b14

File tree

1 file changed

+6
-0
lines changed

1 file changed

+6
-0
lines changed

views/web_views.py

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -161,6 +161,12 @@ def team():
161161

162162
return render_template("team.html", contributors=contributors)
163163

164+
@app.route("/contributors", strict_slashes=False)
165+
@app.route("/<lang_code>/contributors", strict_slashes=False)
166+
def contributors():
167+
contributors = db_models.Contributor.query.all()
168+
return jsonify({"contributors": contributors})
169+
164170
@app.route("/admin", strict_slashes=False)
165171
@app.route("/<lang_code>/admin", strict_slashes=False)
166172
def admin():

0 commit comments

Comments
 (0)