1
0
Fork 0
mirror of https://github.com/mealie-recipes/mealie.git synced 2025-07-20 05:39:40 +02:00
mealie/frontend/api/class-interfaces/group-webhooks.ts

15 lines
412 B
TypeScript
Raw Normal View History

import { BaseCRUDAPI } from "../_base";
2022-05-21 21:22:02 +02:00
import { CreateWebhook, ReadWebhook } from "~/types/api-types/group";
const prefix = "/api";
const routes = {
webhooks: `${prefix}/groups/webhooks`,
webhooksId: (id: string | number) => `${prefix}/groups/webhooks/${id}`,
};
2022-05-21 21:22:02 +02:00
export class WebhooksAPI extends BaseCRUDAPI<CreateWebhook, ReadWebhook> {
baseRoute = routes.webhooks;
itemRoute = routes.webhooksId;
}