This commit is contained in:
@@ -263,7 +263,12 @@ async def login_user(user_login: UserLogin, request: Request):
|
||||
|
||||
async with httpx.AsyncClient(timeout=30.0) as client:
|
||||
try:
|
||||
login_data = user_login.model_dump()
|
||||
# Преобразуем формат данных для совместимости с сервисом пользователей
|
||||
login_data = {
|
||||
"email": user_login.email,
|
||||
"username": user_login.username,
|
||||
"password": user_login.password
|
||||
}
|
||||
print(f"Sending login data to user service: {login_data}")
|
||||
|
||||
response = await client.post(
|
||||
@@ -618,6 +623,7 @@ async def location_service_proxy(request: Request):
|
||||
@app.api_route("/api/v1/calendar/settings", methods=["GET"], operation_id="calendar_settings_get")
|
||||
@app.api_route("/api/v1/calendar/settings", methods=["PUT"], operation_id="calendar_settings_put")
|
||||
# Мобильное API для календаря
|
||||
@app.api_route("/api/v1/calendar/entries/mobile", methods=["POST"], operation_id="calendar_entries_mobile_post")
|
||||
@app.api_route("/api/v1/entry", methods=["POST"], operation_id="mobile_calendar_entry_post")
|
||||
@app.api_route("/api/v1/entries", methods=["GET"], operation_id="mobile_calendar_entries_get")
|
||||
@app.api_route("/api/v1/entries", methods=["POST"], operation_id="mobile_calendar_entries_post")
|
||||
|
||||
Reference in New Issue
Block a user