Skip to content

Commit

Permalink
chore: remove trailing slash from API (#234)
Browse files Browse the repository at this point in the history
  • Loading branch information
S1LV3RJ1NX authored Jun 20, 2024
1 parent fd58fad commit 70ab1b4
Show file tree
Hide file tree
Showing 2 changed files with 0 additions and 8 deletions.
4 changes: 0 additions & 4 deletions backend/server/routers/collection.py
Original file line number Diff line number Diff line change
Expand Up @@ -23,8 +23,6 @@


@router.get("")
# TODO: Keep additional route until FE is updated
@router.get("/")
async def get_collections():
"""API to list all collections with details"""
try:
Expand Down Expand Up @@ -83,8 +81,6 @@ async def get_collection_by_name(collection_name: str = Path(title="Collection n


@router.post("")
# TODO: Keep additional route until FE is updated
@router.post("/")
async def create_collection(collection: CreateCollectionDto):
"""API to create a collection"""
try:
Expand Down
4 changes: 0 additions & 4 deletions backend/server/routers/data_source.py
Original file line number Diff line number Diff line change
Expand Up @@ -13,8 +13,6 @@


@router.get("")
# TODO: Keep additional route until FE is updated
@router.get("/")
async def get_data_source():
"""Get data sources"""
try:
Expand Down Expand Up @@ -49,8 +47,6 @@ async def list_data_sources():


@router.post("")
# TODO: Keep additional route until FE is updated
@router.post("/")
async def add_data_source(
data_source: CreateDataSource,
):
Expand Down

0 comments on commit 70ab1b4

Please sign in to comment.