use api cores

This commit is contained in:
SrGooglo 2023-02-24 14:39:50 +00:00
parent f625f467f4
commit 06d18a388f

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) => {