You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
 
 

21 lines
425 B

  1. "use server"
  2. import { serverFetchJson } from "@/app/utils/fetchUtil";
  3. import { BASE_API_URL } from "@/config/api";
  4. import { cache } from "react";
  5. export interface comboProp {
  6. id: any;
  7. label: string;
  8. }
  9. export interface combo {
  10. records: comboProp;
  11. }
  12. export const fetchSkillCombo = cache(async () => {
  13. return serverFetchJson<combo>(`${BASE_API_URL}/skill/combo`, {
  14. next: { tags: ["skill"] },
  15. });
  16. });