gitfoss-fork | db87acf76e6542b77a56c7bc6c02ff922da17b3f | app/services/organization/index.ts ∙ GitFOSS
.ts
TypeScript
(application/typescript)
// 1st-party
import { makeService } from "@ethicdevs/react-monolith";
// service
import type { OrganizationServiceAPI, OrganizationServiceDeps } from "./types";
// service methods
import { default as makeGetOrganizationById } from "./getOrganizationById";
import { default as makeGetOrganizationBySlug } from "./getOrganizationBySlug";

export const makeOrganizationService = makeService<
  OrganizationServiceAPI,
  OrganizationServiceDeps
>({
  getOrganizationById: makeGetOrganizationById,
  getOrganizationBySlug: makeGetOrganizationBySlug,
});