project-2-pztvaj/endpoints/api/v1/endpoint.post.py
2025-03-17 23:30:17 +00:00

18 lines
570 B
Python

from fastapi import APIRouter, Depends, HTTPException
from core.database import fake_users_db
router = APIRouter()
@router.post("/endpoint")
async def update_credentials_error():
"""Update invalid credentials error to no credentials"""
return {
"message": "Error message updated successfully",
"old_message": "Invalid credentials",
"new_message": "No credentials",
"metadata": {
"status": "success",
"affected_endpoints": ["login", "auth"],
"timestamp": "2024-01-01T00:00:00Z"
}
}