Skip to content

Commit

Permalink
api/mapitems: Move url_prefix into routes
Browse files Browse the repository at this point in the history
  • Loading branch information
Turbo87 committed May 9, 2015
1 parent 8f3e772 commit f137cb6
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 2 deletions.
2 changes: 1 addition & 1 deletion skylines/api/views/__init__.py
Expand Up @@ -51,7 +51,7 @@ def add_cors_headers(response):

app.register_blueprint(airports_blueprint)
app.register_blueprint(airspace_blueprint)
app.register_blueprint(mapitems_blueprint, url_prefix='/mapitems')
app.register_blueprint(mapitems_blueprint)
app.register_blueprint(waves_blueprint, url_prefix='/mountain_wave_project')
app.register_blueprint(user)
app.register_blueprint(users)
Expand Down
3 changes: 2 additions & 1 deletion skylines/api/views/mapitems.py
Expand Up @@ -7,7 +7,8 @@
mapitems_blueprint = Blueprint('mapitems', 'skylines')


@mapitems_blueprint.route('/')
@mapitems_blueprint.route('/mapitems/')
@mapitems_blueprint.route('/mapitems')
def list():
location = parse_location(request.args)
return jsonify({
Expand Down

0 comments on commit f137cb6

Please sign in to comment.