瀏覽代碼

@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)


Loading…
取消
儲存