change
This commit is contained in:
10
src/shared/api/policySvc.ts
Normal file
10
src/shared/api/policySvc.ts
Normal file
@@ -0,0 +1,10 @@
|
||||
import {GET} from "@/shared/api/apiClient";
|
||||
import {PAGE_POLICY} from "@/shared/constants";
|
||||
|
||||
export const getPolicy = async ()=>{
|
||||
const {data} = await GET<{data: {
|
||||
name: string
|
||||
body: string
|
||||
}}>(PAGE_POLICY)
|
||||
return data
|
||||
}
|
||||
Reference in New Issue
Block a user