Nevar pievienot vairāk kā 25 tēmas Tēmai ir jāsākas ar burtu vai ciparu, tā var saturēt domu zīmes ('-') un var būt līdz 35 simboliem gara.
 
 

20 rindas
446 B

  1. import { serverFetchJson } from "@/app/utils/fetchUtil";
  2. import { BASE_API_URL } from "@/config/api";
  3. import { cache } from "react";
  4. import "server-only";
  5. export interface TeamResult {
  6. action: any;
  7. id: number;
  8. name: string;
  9. code: string;
  10. description: string;
  11. }
  12. export const fetchTeam = cache(async () => {
  13. return serverFetchJson<TeamResult[]>(`${BASE_API_URL}/team`, {
  14. next: { tags: ["team"] },
  15. });
  16. });