feat: add telegram group pricing and direct payments
This commit is contained in:
+7
-1
@@ -2,7 +2,8 @@
|
||||
|
||||
from fastapi import APIRouter, Request
|
||||
|
||||
from web.services.auth_api import get_auth_me_payload
|
||||
from web.core import TelegramLoginRequest
|
||||
from web.services.auth_api import get_auth_me_payload, login_with_telegram
|
||||
|
||||
router = APIRouter(tags=["auth"])
|
||||
|
||||
@@ -10,3 +11,8 @@ router = APIRouter(tags=["auth"])
|
||||
@router.get("/api/auth/me")
|
||||
async def auth_me(request: Request):
|
||||
return get_auth_me_payload(request)
|
||||
|
||||
|
||||
@router.post("/api/auth/telegram/login")
|
||||
async def auth_telegram_login(request: Request, body: TelegramLoginRequest):
|
||||
return login_with_telegram(request, body)
|
||||
|
||||
Reference in New Issue
Block a user