mirror of
https://github.com/OneUptime/oneuptime.git
synced 2026-04-06 00:32:12 +02:00
Refactor StatusPageApiInternalUrl to use AppApiClientUrl for improved clarity in server communication
This commit is contained in:
@@ -400,11 +400,9 @@ export const StatusPageApiClientUrl: URL = new URL(
|
||||
// Internal URL for server-to-server communication (uses internal Docker hostname)
|
||||
// Note: The internal path is /api/status-page (not /status-page-api) because
|
||||
// /status-page-api is the external route that Nginx rewrites to /api/status-page
|
||||
export const StatusPageApiInternalUrl: URL = new URL(
|
||||
Protocol.HTTP,
|
||||
AppApiHostname.toString(),
|
||||
new Route("/api/status-page"),
|
||||
);
|
||||
export const StatusPageApiInternalUrl: URL = URL.fromString(
|
||||
AppApiClientUrl.toString()
|
||||
).addRoute(new Route("/status-page"));
|
||||
|
||||
export const DashboardClientUrl: URL = new URL(
|
||||
HttpProtocol,
|
||||
|
||||
Reference in New Issue
Block a user