diff --git a/src/main/apis/delete/lskyplist.ts b/src/main/apis/delete/lskyplist.ts index bc20f68f..8c7366c5 100644 --- a/src/main/apis/delete/lskyplist.ts +++ b/src/main/apis/delete/lskyplist.ts @@ -27,7 +27,7 @@ export default class LskyplistApi { rejectUnauthorized: false, }) try { - const response: AxiosResponse = await axios.delete(`${host}/api/v1/images/${hash}`, { + const response: AxiosResponse = await axios.delete(`${host.replace(/\/$/, '')}/api/v1/images/${hash}`, { headers: v2Headers, timeout: 30000, httpsAgent: requestAgent, diff --git a/src/universal/types/types.d.ts b/src/universal/types/types.d.ts index 6d46ed4e..6c6ac50a 100644 --- a/src/universal/types/types.d.ts +++ b/src/universal/types/types.d.ts @@ -295,6 +295,7 @@ interface IGitHubConfig { repo: string token: string path?: string + webPath?: string customUrl?: string branch: string }