Developer Docs
API Reference
API Routes
Events
List
Route
app/api/events/list/route

web


web / app/api/events/list/route

app/api/events/list/route

This file defines the API route for fetching a list of events.

It provides a flexible endpoint that allows clients to retrieve events based on a variety of filters, including catalog, datasets, geographic bounds, and date ranges. The handler constructs a dynamic Where clause for the Payload query based on the provided search parameters. The results are then serialized into a clean, consistent format for the client.

Functions