First login done
This commit is contained in:
19
app/__init__.py
Normal file
19
app/__init__.py
Normal file
@@ -0,0 +1,19 @@
|
||||
from flask import Flask
|
||||
from dotenv import load_dotenv
|
||||
|
||||
# Cargar las variables de entorno desde .env
|
||||
|
||||
|
||||
|
||||
def create_app():
|
||||
app = Flask(__name__)
|
||||
|
||||
load_dotenv()
|
||||
|
||||
app.config['SECRET_KEY'] = 'mi_secreto'
|
||||
|
||||
# Registro de blueprints
|
||||
from app.codes.user import login
|
||||
app.register_blueprint(login, url_prefix='/')
|
||||
|
||||
return app
|
||||
Reference in New Issue
Block a user