♻️ Refactor rename ModelsOut to ModelsPublic (#1154)

Co-authored-by: Sebastián Ramírez <tiangolo@gmail.com>
This commit is contained in:
Esteban Maya
2024-04-06 16:53:49 -05:00
committed by GitHub
parent 1105ea4c5c
commit ad72c4d3fd
4 changed files with 26 additions and 24 deletions

View File

@@ -10,7 +10,7 @@ from app.api.deps import CurrentUser, SessionDep, get_current_active_superuser
from app.core import security
from app.core.config import settings
from app.core.security import get_password_hash
from app.models import Message, NewPassword, Token, UserOut
from app.models import Message, NewPassword, Token, UserPublic
from app.utils import (
generate_password_reset_token,
generate_reset_password_email,
@@ -43,7 +43,7 @@ def login_access_token(
)
@router.post("/login/test-token", response_model=UserOut)
@router.post("/login/test-token", response_model=UserPublic)
def test_token(current_user: CurrentUser) -> Any:
"""
Test access token