fix(init): added docstrings and indented
This commit is contained in:
@@ -1,8 +1,21 @@
|
|||||||
|
"""
|
||||||
|
Module that initializes the app
|
||||||
|
"""
|
||||||
from flask import Flask
|
from flask import Flask
|
||||||
from . import password, config
|
from . import password, config
|
||||||
|
|
||||||
def create_app():
|
|
||||||
app = Flask(__name__, template_folder="ui/templates", static_folder="ui/static")
|
def create_app() -> Flask:
|
||||||
|
"""
|
||||||
|
Creates the Flask app object
|
||||||
|
|
||||||
|
Returns:
|
||||||
|
Flask: App's object
|
||||||
|
"""
|
||||||
|
app = Flask(
|
||||||
|
__name__,
|
||||||
|
template_folder="ui/templates",
|
||||||
|
static_folder="ui/static")
|
||||||
app.config.from_object(config.ProductionConfig())
|
app.config.from_object(config.ProductionConfig())
|
||||||
|
|
||||||
app.register_blueprint(password.bp)
|
app.register_blueprint(password.bp)
|
||||||
|
|||||||
Reference in New Issue
Block a user