mirror of
https://github.com/lrnselfreliance/wrolpi.git
synced 2026-12-01 20:36:21 -05:00
Adding feature which adds toggles to Zim files to enable/disable auto search.
This commit is contained in:
parent
531ec3d65e
commit
3d6ccad0c0
11 changed files with 192 additions and 21 deletions
|
|
@ -1333,6 +1333,14 @@ export async function zimUnsubscribe(id) {
|
|||
return response.status === 204;
|
||||
}
|
||||
|
||||
export async function setZimAutoSearch(id, auto_search) {
|
||||
const body = {auto_search};
|
||||
const response = await apiPost(`${API_URI}/zim/${id}/auto_search`, body);
|
||||
if (response.status !== 204) {
|
||||
throw new Error('Failed to set Zim auto search');
|
||||
}
|
||||
}
|
||||
|
||||
export async function fetchDecoded(vinNumber) {
|
||||
const body = {vin_number: vinNumber};
|
||||
const response = await apiPost(`${API_URI}/vin_number_decoder`, body);
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue