mirror of
https://github.com/mealie-recipes/mealie.git
synced 2024-12-26 05:51:21 -08:00
7c274de778
Co-authored-by: Kuchenpirat <24235032+Kuchenpirat@users.noreply.github.com>
14 lines
513 B
TypeScript
14 lines
513 B
TypeScript
import { BaseCRUDAPI } from "../base/base-clients";
|
|
import { HouseholdCreate, HouseholdInDB, UpdateHouseholdAdmin } from "~/lib/api/types/household";
|
|
const prefix = "/api";
|
|
|
|
const routes = {
|
|
adminHouseholds: `${prefix}/admin/households`,
|
|
adminHouseholdsId: (id: string) => `${prefix}/admin/households/${id}`,
|
|
};
|
|
|
|
export class AdminHouseholdsApi extends BaseCRUDAPI<HouseholdCreate, HouseholdInDB, UpdateHouseholdAdmin> {
|
|
baseRoute: string = routes.adminHouseholds;
|
|
itemRoute = routes.adminHouseholdsId;
|
|
}
|