Backend finished
Co-authored-by: Álvaro <alvaro6gv@users.noreply.github.com>
This commit is contained in:
16
backend/app/main.py
Normal file
16
backend/app/main.py
Normal 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"])
|
||||
Reference in New Issue
Block a user