correções na validação de jwt e na requisição POST

This commit is contained in:
2026-05-28 13:20:47 -05:00
parent a4cbc28d1d
commit 0a8a3d271d
2 changed files with 7 additions and 6 deletions

View File

@@ -1,4 +1,5 @@
from fastapi import FastAPI
from fastapi import FastAPI, Depends
from app.core.security import get_current_user, UserAuth
from app.core.config import settings
from app.api.v1.api import api_router
from app.db.database import Base, engine
@@ -14,5 +15,5 @@ app = FastAPI(
app.include_router(api_router, prefix=settings.API_V1_STR)
@app.get("/")
def root():
def root(current_user: UserAuth = Depends(get_current_user)):
return {"message": "Bem-vindo ao Microsserviço de Catálogo do GameVerse"}