mirror of
https://github.com/MODSetter/SurfSense.git
synced 2026-06-28 21:49: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
|
|
@ -131,7 +131,7 @@ const handler: PlasmoMessaging.MessageHandler = async (req, res) => {
|
|||
};
|
||||
|
||||
const response = await fetch(
|
||||
`${process.env.PLASMO_PUBLIC_BACKEND_URL}/api/v1/documents/`,
|
||||
`${process.env.PLASMO_PUBLIC_BACKEND_URL}/api/v1/documents`,
|
||||
requestOptions
|
||||
);
|
||||
const resp = await response.json();
|
||||
|
|
|
|||
|
|
@ -123,7 +123,7 @@ const handler: PlasmoMessaging.MessageHandler = async (req, res) => {
|
|||
};
|
||||
|
||||
const response = await fetch(
|
||||
`${process.env.PLASMO_PUBLIC_BACKEND_URL}/api/v1/documents/`,
|
||||
`${process.env.PLASMO_PUBLIC_BACKEND_URL}/api/v1/documents`,
|
||||
requestOptions
|
||||
);
|
||||
const resp = await response.json();
|
||||
|
|
|
|||
|
|
@ -47,7 +47,7 @@ const HomePage = () => {
|
|||
const token = await storage.get("token");
|
||||
try {
|
||||
const response = await fetch(
|
||||
`${process.env.PLASMO_PUBLIC_BACKEND_URL}/api/v1/searchspaces/`,
|
||||
`${process.env.PLASMO_PUBLIC_BACKEND_URL}/api/v1/searchspaces`,
|
||||
{
|
||||
headers: {
|
||||
Authorization: `Bearer ${token}`,
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue