Skip to content
Snippets Groups Projects
Commit c398a94c authored by Teemu Autto's avatar Teemu Autto
Browse files

Restructuring.

parent 806dbf42
No related branches found
No related tags found
1 merge request!20Merge of the changes done in propaedeutic.
......@@ -47,14 +47,14 @@ def create_app(config: Optional[Dict] = None) -> Flask:
except OSError:
pass
# Initialize the database connection.
init_db(flask_app)
# a simple page that says hello
@flask_app.route('/hello')
def hello():
return 'Hello, World!'
# Initialize the database connection.
init_db(flask_app)
# Register blueprints
from . import views # pylint: disable=import-outside-toplevel
flask_app.register_blueprint(views.bp, url_prefix='')
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment