feat: 7. REST-эндпоинты /auth/*

This commit is contained in:
2026-10-12 16:45:16 +03:00
parent 8a07638cef
commit 6ccc025440
5 changed files with 118 additions and 0 deletions
+17
View File
@@ -0,0 +1,17 @@
from pydantic import BaseModel, EmailStr
class Credentials(BaseModel):
email: EmailStr
password: str
class TokenResponse(BaseModel):
access_token: str
token_type: str = "bearer"
class UserResponse(BaseModel):
id: int
email: EmailStr
is_admin: bool