Skip to content

admin

root() async

Handles the root route of the admin router.

This endpoint raises an HTTPException with a 418 status code and a detail message indicating "I'm a teapot." This method does not return any content as it is designed to only trigger the exception. The implementation is aligned with the HTTP 418 status code, which is used as an Easter egg for humorous purposes.

Returns:

Type Description
NoneType

None

Raises:

Type Description
HTTPException

Always raised with status code 418 and detail "I'm a teapot".

Source code in backend/app/admin/router.py
@admin_router.get("/")
async def root():
    """
    Handles the root route of the admin router.

    This endpoint raises an HTTPException with a 418 status code and a detail message
    indicating "I'm a teapot." This method does not return any content as it is designed
    to only trigger the exception. The implementation is aligned with the HTTP 418 status
    code, which is used as an Easter egg for humorous purposes.

    :return: None
    :rtype: NoneType
    :raises HTTPException: Always raised with status code 418 and detail "I'm a teapot".
    """
    raise HTTPException(status_code=418, detail="I'm a teapot.")