mirror of
https://github.com/MODSetter/SurfSense.git
synced 2026-05-10 08:12:40 +02:00
refactor: update API endpoint paths to remove trailing slashes
- Modified various FastAPI route definitions to remove trailing slashes for consistency across the application. - Updated corresponding fetch calls in the frontend to align with the new endpoint structure. - Ensured that all affected routes maintain their functionality without trailing slashes.
This commit is contained in:
parent
170b3cb167
commit
ecd07d6155
41 changed files with 191 additions and 148 deletions
|
|
@ -130,7 +130,7 @@ async def handle_chat_data(
|
|||
return response
|
||||
|
||||
|
||||
@router.post("/chats/", response_model=ChatRead)
|
||||
@router.post("/chats", response_model=ChatRead)
|
||||
async def create_chat(
|
||||
chat: ChatCreate,
|
||||
session: AsyncSession = Depends(get_async_session),
|
||||
|
|
@ -164,7 +164,7 @@ async def create_chat(
|
|||
) from None
|
||||
|
||||
|
||||
@router.get("/chats/", response_model=list[ChatReadWithoutMessages])
|
||||
@router.get("/chats", response_model=list[ChatReadWithoutMessages])
|
||||
async def read_chats(
|
||||
skip: int = 0,
|
||||
limit: int = 100,
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue