Skip to content

Commit

Permalink
Nits
Browse files Browse the repository at this point in the history
  • Loading branch information
vaamb committed Feb 2, 2025
1 parent d3b24f0 commit 8743c3f
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions src/ouranos/web_server/routes/services/wiki.py
Original file line number Diff line number Diff line change
Expand Up @@ -531,7 +531,7 @@ async def get_article_pictures(

@router.post("/topics/u/{topic_name}/u/{article_name}/u",
dependencies=[Depends(is_operator)])
async def add_picture_to_article(
async def add_picture(
topic_name: Annotated[str, Path(description="The name of the topic")],
article_name: Annotated[str, Path(description="The name of the article")],
payload: Annotated[
Expand Down Expand Up @@ -565,7 +565,7 @@ async def add_picture_to_article(

@router.post("/topics/u/{topic_name}/u/{article_name}/u/upload_file",
dependencies=[Depends(is_operator)])
async def upload_picture_to_article(
async def upload_picture(
topic_name: Annotated[str, Path(description="The name of the topic")],
article_name: Annotated[str, Path(description="The name of the article")],
file: UploadFile,
Expand Down Expand Up @@ -604,7 +604,7 @@ async def upload_picture_to_article(

@router.get("/topics/u/{topic_name}/u/{article_name}/u/{picture_name}",
response_model=WikiArticlePictureInfo)
async def get_article_picture(
async def get_picture(
topic_name: Annotated[str, Path(description="The name of the topic")],
article_name: Annotated[str, Path(description="The name of the article")],
picture_name: Annotated[str, Path(description="The name of the picture")],
Expand All @@ -623,7 +623,7 @@ async def get_article_picture(

@router.delete("/topics/u/{topic_name}/u/{article_name}/u/{picture_name}",
dependencies=[Depends(is_operator)])
async def delete_picture_from_article(
async def delete_picture(
topic_name: Annotated[str, Path(description="The name of the topic")],
article_name: Annotated[str, Path(description="The name of the article")],
picture_name: Annotated[str, Path(description="The name of the picture")],
Expand Down

0 comments on commit 8743c3f

Please sign in to comment.