list of sections
This commit is contained in:
@@ -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;
|
||||
};
|
||||
|
||||
|
||||
Reference in New Issue
Block a user