19 lines
592 B
Python
19 lines
592 B
Python
from fastapi import APIRouter, Depends, HTTPException
|
|
from core.database import fake_users_db
|
|
|
|
#router instantiation
|
|
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"
|
|
}
|
|
} |