list of sections

This commit is contained in:
hamid zarghami
2026-02-02 09:44:05 +03:30
parent c3cb697fae
commit a25ab81d08
3 changed files with 41 additions and 3 deletions
+2 -2
View File
@@ -1,8 +1,8 @@
import axios from "@/config/axios";
import type { CreateSectionType } from "../types/Types";
import type { CreateSectionType, SectionsResponseType } from "../types/Types";
export const getSections = async () => {
const { data } = await axios.get(`/admin/section`);
const { data } = await axios.get<SectionsResponseType>(`/admin/section`);
return data;
};