Permalink
Cannot retrieve contributors at this time
Name already in use
A tag already exists with the provided branch name. Many Git commands accept both tag and branch names, so creating this branch may cause unexpected behavior. Are you sure you want to create this branch?
newr1/location_app/app/routes/__init__.py
Go to fileThis commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
22 lines (19 sloc)
682 Bytes
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# Imports all blueprints so that they can be | |
# connected to the app object | |
from .index import index_bl | |
from .main import main_bl | |
from .map import map_bl | |
from .login import login_bl | |
from .profile import prof_bl | |
from .average import average_bl | |
def init_app(app): | |
""" | |
Registers all blueprints to the app with | |
the appropriate url prefix | |
""" | |
app.register_blueprint(index_bl) | |
app.register_blueprint(main_bl, url_prefix="/main") | |
app.register_blueprint(map_bl, url_prefix="/map") | |
app.register_blueprint(login_bl, url_prefix="/login") | |
app.register_blueprint(prof_bl, url_prefix="/profile") | |
app.register_blueprint(average_bl, url_prefix="/average") |