16 lines
368 B
Python
16 lines
368 B
Python
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"]) |