mirror of
https://github.com/gethomepage/homepage.git
synced 2025-12-07 09:35:54 -08:00
Fix: subdirectory deployment (#2205)
This commit is contained in:
@@ -23,7 +23,7 @@ export function formatProxyUrlWithSegments(widget, endpoint, segments) {
|
||||
if (segments) {
|
||||
params.append("segments", JSON.stringify(segments));
|
||||
}
|
||||
return `/api/services/proxy?${params.toString()}`;
|
||||
return `api/services/proxy?${params.toString()}`;
|
||||
}
|
||||
|
||||
export function formatProxyUrl(widget, endpoint, queryParams) {
|
||||
@@ -31,7 +31,7 @@ export function formatProxyUrl(widget, endpoint, queryParams) {
|
||||
if (queryParams) {
|
||||
params.append("query", JSON.stringify(queryParams));
|
||||
}
|
||||
return `/api/services/proxy?${params.toString()}`;
|
||||
return `api/services/proxy?${params.toString()}`;
|
||||
}
|
||||
|
||||
export function asJson(data) {
|
||||
|
||||
Reference in New Issue
Block a user