Skip to content
Permalink
64fb0fa24d
Switch branches/tags

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?
Go to file
 
 
Cannot retrieve contributors at this time
22 lines (19 sloc) 682 Bytes
# 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")