Skip to content

Commit

Permalink
decorators on separate line for clarity
Browse files Browse the repository at this point in the history
  • Loading branch information
mvexel committed Jul 14, 2014
1 parent f228af3 commit 82a23c7
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion maproulette/api/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -76,7 +76,8 @@ def format(self, text):
'display_name': fields.String
}

api = Api(app, decorators=[cors.crossdomain(origin=app.config['METRICS_URL'])])
api = Api(app)
api.decorators = [cors.crossdomain(origin=app.config['METRICS_URL'])]

# override the default JSON representation to support the geo objects

Expand Down

0 comments on commit 82a23c7

Please sign in to comment.