mirror of
https://github.com/GSA/notifications-api.git
synced 2026-01-31 06:52:06 -05:00
Merge pull request #7 from alphagov/remove_main
Removed the main package.
This commit is contained in:
@@ -27,11 +27,9 @@ def create_app(config_name):
|
||||
|
||||
logging.init_app(application)
|
||||
|
||||
from .main import main as main_blueprint
|
||||
from .service import service as service_blueprint
|
||||
from .user import user as user_blueprint
|
||||
from .template import template as template_blueprint
|
||||
application.register_blueprint(main_blueprint)
|
||||
application.register_blueprint(service_blueprint, url_prefix='/service')
|
||||
application.register_blueprint(user_blueprint, url_prefix='/user')
|
||||
application.register_blueprint(template_blueprint, url_prefix="/template")
|
||||
@@ -39,8 +37,6 @@ def create_app(config_name):
|
||||
from .status import status as status_blueprint
|
||||
application.register_blueprint(status_blueprint)
|
||||
|
||||
from app import models
|
||||
|
||||
return application
|
||||
|
||||
|
||||
|
||||
@@ -1,5 +0,0 @@
|
||||
from flask import Blueprint
|
||||
|
||||
main = Blueprint('main', __name__)
|
||||
|
||||
from app.main.views import index
|
||||
@@ -1,2 +0,0 @@
|
||||
from flask import jsonify
|
||||
from .. import main
|
||||
Reference in New Issue
Block a user