mirror of
https://github.com/Kuingsmile/PicList.git
synced 2026-05-06 20:42:57 +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,
|
||||
})
|
||||
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,
|
||||
|
||||
1
src/universal/types/types.d.ts
vendored
1
src/universal/types/types.d.ts
vendored
@@ -295,6 +295,7 @@ interface IGitHubConfig {
|
||||
repo: string
|
||||
token: string
|
||||
path?: string
|
||||
webPath?: string
|
||||
customUrl?: string
|
||||
branch: string
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user