mirror of
https://github.com/ragestudio/comty.git
synced 2025-06-09 10:34:17 +00:00
11 lines
176 B
JavaScript
11 lines
176 B
JavaScript
import { Event } from "@db_models"
|
|
|
|
export default async (req) => {
|
|
const events = await Event.find({
|
|
endDate: { $gte: new Date() },
|
|
featured: true,
|
|
})
|
|
|
|
return events
|
|
}
|