echevemaster / fedora-college

Fedora College's website
Other
12 stars 10 forks source link

Blueprint prefix #21

Closed yograterol closed 10 years ago

yograterol commented 10 years ago

With blueprint prefix we can miss the prefix in all routes definition. (http://flask.pocoo.org/docs/api/#flask.Blueprint)

https://github.com/echevemaster/fedora-college/blob/develop/fedora_college/modules/api/views.py#L14

This:

bundle = Blueprint('api', __name__)

can be:

bundle = Blueprint('api', __name__, url_prefix='/api/')
hammadhaleem commented 10 years ago

Added in the latest commit, but not yet created a merge request.

https://github.com/hammadhaleem/fedora-college/commit/56cde34bae474cc335abab857d3753977a7625fe

yograterol commented 10 years ago

@hammadhaleem :) thanks!

hammadhaleem commented 10 years ago

You are most welcome :)