mirror of
https://github.com/Kuingsmile/PicList.git
synced 2026-05-07 07:22:46 +08:00
✨ Feature(custom): trim trailing slash from host url in lsky delete api #456
This commit is contained in:
@@ -27,7 +27,7 @@ export default class LskyplistApi {
|
|||||||
rejectUnauthorized: false,
|
rejectUnauthorized: false,
|
||||||
})
|
})
|
||||||
try {
|
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,
|
headers: v2Headers,
|
||||||
timeout: 30000,
|
timeout: 30000,
|
||||||
httpsAgent: requestAgent,
|
httpsAgent: requestAgent,
|
||||||
|
|||||||
1
src/universal/types/types.d.ts
vendored
1
src/universal/types/types.d.ts
vendored
@@ -295,6 +295,7 @@ interface IGitHubConfig {
|
|||||||
repo: string
|
repo: string
|
||||||
token: string
|
token: string
|
||||||
path?: string
|
path?: string
|
||||||
|
webPath?: string
|
||||||
customUrl?: string
|
customUrl?: string
|
||||||
branch: string
|
branch: string
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user