Skip to content

Commit e6b7401

Browse files
committed
fix(repository): Debugging a router in the fastapi mono package
1 parent 115a1a4 commit e6b7401

File tree

2 files changed

+5
-5
lines changed

2 files changed

+5
-5
lines changed

monobank_api_client/fastapi_mono/router.py

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -7,10 +7,10 @@
77
from async_mono.manager import AsyncMonoManager
88

99

10-
router = APIRouter(tags=["Mono"])
10+
router = APIRouter(tags=["Mono"], prefix="/mono")
1111

1212

13-
@router.post("/add-mono")
13+
@router.post("/add")
1414
async def add_monobank(
1515
schema: MonoSchema, session: AsyncSession = Depends(async_session)
1616
) -> Dict:
@@ -22,7 +22,7 @@ async def add_monobank(
2222
return exception
2323

2424

25-
@router.put("/change-mono")
25+
@router.put("/change")
2626
async def change_monobank(
2727
user: str,
2828
schema: MonoSchemaUpdate,
@@ -36,7 +36,7 @@ async def change_monobank(
3636
return exception
3737

3838

39-
@router.delete("/delete-mono")
39+
@router.delete("/delete")
4040
async def delete_monobank(
4141
user: str, session: AsyncSession = Depends(async_session)
4242
) -> Dict:

setup.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,7 @@ def readme():
88

99
setup(
1010
name="monobank_api_client",
11-
version="1.2.2",
11+
version="1.2.3",
1212
author="ihor.sotnyk",
1313
author_email="ihor.sotnyk@onix-systems.com",
1414
description="This module is designed for quick interaction with the monobank API.",

0 commit comments

Comments
 (0)