correções na validação de jwt e na requisição POST
This commit is contained in:
@@ -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"}
|
||||
|
||||
Reference in New Issue
Block a user