added events model

This commit is contained in:
SrGooglo 2025-04-09 20:51:36 +00:00
parent 9002716421
commit c0b93aa9fd

View File

@ -0,0 +1,21 @@
import request from "../../request"
export default class EventsModel {
static async getFeatured() {
const { data } = await request({
method: "GET",
url: "/featured/events",
})
return data
}
static async data(id) {
const { data } = await request({
method: "GET",
url: `/events/${id}/data`,
})
return data
}
}