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>
29 lines
1.2 KiB
TypeScript
29 lines
1.2 KiB
TypeScript
import { BaseAPI } from "../base/base-clients";
|
|
import { ApiRequestInstance } from "~/lib/api/types/non-generated";
|
|
import { PublicRecipeApi } from "./explore/recipes";
|
|
import { PublicFoodsApi } from "./explore/foods";
|
|
import { PublicCategoriesApi, PublicTagsApi, PublicToolsApi } from "./explore/organizers";
|
|
import { PublicCookbooksApi } from "./explore/cookbooks";
|
|
import { PublicHouseholdApi } from "./explore/households";
|
|
|
|
export class ExploreApi extends BaseAPI {
|
|
public recipes: PublicRecipeApi;
|
|
public cookbooks: PublicCookbooksApi;
|
|
public foods: PublicFoodsApi;
|
|
public categories: PublicCategoriesApi;
|
|
public tags: PublicTagsApi;
|
|
public tools: PublicToolsApi;
|
|
public households: PublicHouseholdApi
|
|
|
|
constructor(requests: ApiRequestInstance, groupSlug: string) {
|
|
super(requests);
|
|
this.recipes = new PublicRecipeApi(requests, groupSlug);
|
|
this.cookbooks = new PublicCookbooksApi(requests, groupSlug);
|
|
this.foods = new PublicFoodsApi(requests, groupSlug);
|
|
this.categories = new PublicCategoriesApi(requests, groupSlug);
|
|
this.tags = new PublicTagsApi(requests, groupSlug);
|
|
this.tools = new PublicToolsApi(requests, groupSlug);
|
|
this.households = new PublicHouseholdApi(requests, groupSlug);
|
|
}
|
|
}
|