Commit c21f4dda authored by axiiom's avatar axiiom
Browse files

missed one :)

parent cada157d
...@@ -105,13 +105,13 @@ def test_data(session): ...@@ -105,13 +105,13 @@ def test_data(session):
return redirect('/') return redirect('/')
@app.route('/category/<id>') @app.route('/category/<int:id>')
@with_session @with_session
def get_category(session, id): def get_category(session, id):
return get_resource(session, Category, id) return get_resource(session, Category, id)
@app.route('/category/<id>/children') @app.route('/category/<int:id>/children')
@with_session @with_session
def get_category_children(data, session, id): def get_category_children(data, session, id):
data = dict(request.args) data = dict(request.args)
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment