mirror of
https://github.com/hay-kot/mealie.git
synced 2025-07-06 04:52:25 -07:00
14 lines
548 B
TypeScript
14 lines
548 B
TypeScript
import { BaseCRUDAPI } from "../base/base-clients";
|
|
import { CreateGroupRecipeAction, GroupRecipeActionOut } from "~/lib/api/types/household";
|
|
|
|
const prefix = "/api";
|
|
|
|
const routes = {
|
|
groupRecipeActions: `${prefix}/households/recipe-actions`,
|
|
groupRecipeActionsId: (id: string | number) => `${prefix}/households/recipe-actions/${id}`,
|
|
};
|
|
|
|
export class GroupRecipeActionsAPI extends BaseCRUDAPI<CreateGroupRecipeAction, GroupRecipeActionOut> {
|
|
baseRoute = routes.groupRecipeActions;
|
|
itemRoute = routes.groupRecipeActionsId;
|
|
}
|