Files
mixtape/zero.Web.UI/App/api/integrations.js
T

12 lines
567 B
JavaScript
Raw Normal View History

2020-12-10 15:57:59 +01:00
import { get, post, del } from '../helpers/request.ts';
const base = 'integrations/';
export default {
getAll: async () => await get(base + 'getAll'),
getEmptySettings: async alias => await get(base + 'getEmptySettings', { params: { alias } }),
getSettingsById: async id => await get(base + 'getSettingsById', { params: { id } }),
2020-12-15 13:08:48 +01:00
getSettingsByAlias: async alias => await get(base + 'getSettingsByAlias', { params: { alias } }),
2020-12-10 15:57:59 +01:00
save: async model => await post(base + 'save', model),
delete: async id => await del(base + 'delete', { params: { id } })
};