refac: naming convention
This commit is contained in:
parent
b942aeee23
commit
c9bef3bbe4
5 changed files with 6 additions and 6 deletions
|
@ -28,7 +28,7 @@ async def start_router() -> None:
|
|||
"/list",
|
||||
responses=LM_CALENDAR.lister.responses,
|
||||
)
|
||||
async def list_all_calendars(
|
||||
async def list_calendars(
|
||||
names: list[str] = Depends(LM_CALENDAR.lister.func),
|
||||
) -> list[str]:
|
||||
return names
|
||||
|
|
|
@ -40,7 +40,7 @@ async def start_router() -> None:
|
|||
"/list",
|
||||
responses=LM_FILE.lister.responses,
|
||||
)
|
||||
async def list_all_files(
|
||||
async def list_files(
|
||||
names: list[str] = Depends(LM_FILE.lister.func),
|
||||
) -> list[str]:
|
||||
return names
|
||||
|
|
|
@ -41,7 +41,7 @@ async def start_router() -> None:
|
|||
"/list",
|
||||
responses=LM_IMAGE.lister.responses,
|
||||
)
|
||||
async def list_all_images(
|
||||
async def list_images(
|
||||
names: list[str] = Depends(LM_IMAGE.lister.func),
|
||||
) -> list[str]:
|
||||
return names
|
||||
|
|
|
@ -26,7 +26,7 @@ async def start_router() -> None:
|
|||
|
||||
|
||||
@router.get("/lanip")
|
||||
async def get_ip() -> str:
|
||||
async def get_lan_ip() -> str:
|
||||
with socket(
|
||||
family=AF_INET,
|
||||
type=SOCK_DGRAM,
|
||||
|
@ -43,7 +43,7 @@ async def get_ip() -> str:
|
|||
|
||||
|
||||
@router.get("/version")
|
||||
async def get_version() -> str:
|
||||
async def get_server_api_version() -> str:
|
||||
return importlib.metadata.version("ovdashboard-api")
|
||||
|
||||
|
||||
|
|
|
@ -39,7 +39,7 @@ async def start_router() -> None:
|
|||
"/list",
|
||||
responses=LM_TEXT.lister.responses,
|
||||
)
|
||||
async def list_all_texts(
|
||||
async def list_texts(
|
||||
names: list[str] = Depends(LM_TEXT.lister.func),
|
||||
) -> list[str]:
|
||||
return names
|
||||
|
|
Loading…
Reference in a new issue