Browse Source

@catch_errors for api routes.

pull/24/head
Ben Kurtovic 10 years ago
parent
commit
69819ed3f8
1 changed files with 2 additions and 0 deletions
  1. +2
    -0
      app.fcgi

+ 2
- 0
app.fcgi View File

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


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


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


Loading…
Cancel
Save