mirror of
https://github.com/mealie-recipes/mealie.git
synced 2026-02-07 08:23:12 -05:00
20 lines
484 B
JavaScript
20 lines
484 B
JavaScript
import { apiReq } from "./api-utils";
|
|
import { API_ROUTES } from "./apiRoutes";
|
|
|
|
export const settingsAPI = {
|
|
async requestAll() {
|
|
let response = await apiReq.get(API_ROUTES.siteSettings);
|
|
return response.data;
|
|
},
|
|
|
|
async testWebhooks() {
|
|
let response = await apiReq.post(API_ROUTES.siteSettingsWebhooksTest);
|
|
return response.data;
|
|
},
|
|
|
|
async update(body) {
|
|
let response = await apiReq.put(API_ROUTES.siteSettings, body);
|
|
return response.data;
|
|
},
|
|
};
|