use api cores

This commit is contained in:
SrGooglo 2023-02-24 14:39:50 +00:00
parent 8c7188f7af
commit 51abd4db15

View File

@ -24,7 +24,7 @@ export default (props) => {
const [eventData, setEventData] = React.useState(null)
const fetchEventData = async () => {
const { data } = await app.api.customRequest("main", {
const { data } = await app.cores.api.customRequest("main", {
method: "GET",
url: `/featured_event/${eventId}`
}).catch((err) => {