gitfoss-fork | c6ac7c878d0e4b2ea5523e0a318628e616afae9d | 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,
});