ソースを参照

@catch_errors for api routes.

pull/24/head
Ben Kurtovic 9年前
コミット
69819ed3f8
1個のファイルの変更2行の追加0行の削除
  1. +2
    -0
      app.fcgi

+ 2
- 0
app.fcgi ファイルの表示

@@ -88,10 +88,12 @@ def settings():
return render_template("settings.mako", **kwargs)

@app.route("/api")
@catch_errors
def api():
return render_template("api.mako", help=True)

@app.route("/api.json")
@catch_errors
def api_json():
if not request.args:
return render_template("api.mako", help=True)


読み込み中…
キャンセル
保存