mirror of
https://github.com/ragestudio/comty.git
synced 2025-06-10 19:14:16 +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 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) => {
|
||||
|
Loading…
x
Reference in New Issue
Block a user