Backend finished

Co-authored-by: Álvaro <alvaro6gv@users.noreply.github.com>
This commit is contained in:
2025-11-10 19:49:26 +01:00
parent a2e823c4c3
commit d2f3cad487
18 changed files with 330 additions and 1 deletions

16
backend/app/main.py Normal file
View File

@@ -0,0 +1,16 @@
from typing import Union
from fastapi import FastAPI
from app.routes import users, auth
"""
ENDPOINTS:
GET /users/
GET /users/{user_id}
POST /users
POST /2fa
"""
app = FastAPI(title="FastAPI + MariaDB + 2FA Example")
# Registramos las rutas
app.include_router(users.router, tags=["Users"])
app.include_router(auth.router, tags=["Authentication"])