chore: add base config and package structure
This commit is contained in:
@@ -1,8 +1,12 @@
|
||||
from flask import Flask
|
||||
|
||||
from app.config import BaseConfig, load_config_from_env
|
||||
|
||||
|
||||
def create_app(config_object=None):
|
||||
app = Flask(__name__)
|
||||
app.config.from_object(BaseConfig)
|
||||
app.config.update(load_config_from_env())
|
||||
|
||||
if config_object:
|
||||
if isinstance(config_object, dict):
|
||||
|
||||
Reference in New Issue
Block a user