mirror of
https://github.com/ragestudio/comty.git
synced 2025-06-10 02:54:15 +00:00
use api cores
This commit is contained in:
parent
8c7188f7af
commit
51abd4db15
@ -24,7 +24,7 @@ export default (props) => {
|
|||||||
const [eventData, setEventData] = React.useState(null)
|
const [eventData, setEventData] = React.useState(null)
|
||||||
|
|
||||||
const fetchEventData = async () => {
|
const fetchEventData = async () => {
|
||||||
const { data } = await app.api.customRequest("main", {
|
const { data } = await app.cores.api.customRequest("main", {
|
||||||
method: "GET",
|
method: "GET",
|
||||||
url: `/featured_event/${eventId}`
|
url: `/featured_event/${eventId}`
|
||||||
}).catch((err) => {
|
}).catch((err) => {
|
||||||
|
Loading…
x
Reference in New Issue
Block a user