mirror of
https://github.com/simon987/sist2.git
synced 2025-04-18 01:36:42 +00:00
Remove leading slash in sist2-admin API requests #384
This commit is contained in:
parent
930361e78c
commit
cbab4c2841
@ -7,15 +7,15 @@ class Sist2AdminApi {
|
|||||||
}
|
}
|
||||||
|
|
||||||
getJobs() {
|
getJobs() {
|
||||||
return axios.get(`${this.baseUrl}/api/job/`);
|
return axios.get(`${this.baseUrl}/api/job`);
|
||||||
}
|
}
|
||||||
|
|
||||||
getFrontends() {
|
getFrontends() {
|
||||||
return axios.get(`${this.baseUrl}/api/frontend/`);
|
return axios.get(`${this.baseUrl}/api/frontend`);
|
||||||
}
|
}
|
||||||
|
|
||||||
getTasks() {
|
getTasks() {
|
||||||
return axios.get(`${this.baseUrl}/api/task/`);
|
return axios.get(`${this.baseUrl}/api/task`);
|
||||||
}
|
}
|
||||||
|
|
||||||
killTask(taskId) {
|
killTask(taskId) {
|
||||||
@ -42,7 +42,7 @@ class Sist2AdminApi {
|
|||||||
}
|
}
|
||||||
|
|
||||||
getSearchBackends() {
|
getSearchBackends() {
|
||||||
return axios.get(`${this.baseUrl}/api/search_backend/`);
|
return axios.get(`${this.baseUrl}/api/search_backend`);
|
||||||
}
|
}
|
||||||
|
|
||||||
deleteBackend(name) {
|
deleteBackend(name) {
|
||||||
@ -127,7 +127,7 @@ class Sist2AdminApi {
|
|||||||
}
|
}
|
||||||
|
|
||||||
getSist2AdminInfo() {
|
getSist2AdminInfo() {
|
||||||
return axios.get(`${this.baseUrl}/api/`);
|
return axios.get(`${this.baseUrl}/api`);
|
||||||
}
|
}
|
||||||
|
|
||||||
getLogsToDelete(jobName, n) {
|
getLogsToDelete(jobName, n) {
|
||||||
|
Loading…
x
Reference in New Issue
Block a user