ЛР 2 — БВТ2301 — Бушков — на 4 #101

Closed
zhebush wants to merge 12 commits from zhebush/mtusi2026lab2:solution/bvt2301-bushkov into master
Showing only changes of commit 1a08e3a6a3 - Show all commits
+2 -2
View File
@@ -5,7 +5,7 @@ import logging
from typing import Any
from fastapi import APIRouter, Body, Header, Query, Request
from fastapi.responses import JSONResponse
from fastapi.responses import JSONResponse, Response
from .errors import ApiError
from .security import hash_password, verify_password
@@ -134,7 +134,7 @@ def revoke_session(
if not token or get_sessions(request).resolve(token) is None:
raise _unauthorized("Недействительная сессия", BEARER_CHALLENGE)
get_sessions(request).revoke(token)
return JSONResponse(status_code=204)
return Response(status_code=204)
@router.get("/api/v1/users/me")