diff --git a/src/helpers/APIHelper.ts b/src/helpers/APIHelper.ts
index f144347..99093bc 100644
--- a/src/helpers/APIHelper.ts
+++ b/src/helpers/APIHelper.ts
@@ -139,6 +139,7 @@ export class APIHelper {
ctx.response.status = 200
ctx.body = `
GET /api/status
+GET /api/list
POST /api/playURL/:windowId body: {"url": "", "jsCode": "" }
POST /api/restart/:windowId
POST /api/stop/:windowId
@@ -321,6 +322,7 @@ POST /api/execute/:windowId body: {"jsCode": "" }
body: windows.map((w) => ({
id: w.id,
url: w.window.url,
+ actualUrl: w.window.getURL(),
statusCode: w.window.status.statusCode,
statusMessage: w.window.status.message,
})),
diff --git a/src/helpers/WindowHelper.ts b/src/helpers/WindowHelper.ts
index ef0a7f6..075c688 100644
--- a/src/helpers/WindowHelper.ts
+++ b/src/helpers/WindowHelper.ts
@@ -276,7 +276,7 @@ export class WindowHelper extends EventEmitter {
this.emit('window-has-been-modified')
}
- private getURL(): string {
+ public getURL(): string {
const windowUrl = this._url ?? this._config.defaultURL
if (this._sharedConfig.baseURL && !windowUrl.match(/^(?:[a-z+]+:)?\/\//i)) {
diff --git a/src/lib/api.ts b/src/lib/api.ts
index f0b98d3..a690fe3 100644
--- a/src/lib/api.ts
+++ b/src/lib/api.ts
@@ -71,6 +71,7 @@ export interface APIResponseList extends APIResponseBase {
body: {
id: string
url: string | null
+ actualUrl: string
statusCode: string
statusMessage: string
}[]