First login done

This commit is contained in:
victor
2024-12-06 00:27:27 +01:00
parent 28ac497c57
commit 13fe482956
4 changed files with 60 additions and 0 deletions

19
app/__init__.py Normal file
View 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