"use server";
import { fetchDataWithToken } from "../api-fetcher";
import { baseUrl } from "../basics";

const eventList = `${baseUrl}/event/list`;

async function retrieveEventList() {
  return await fetchDataWithToken(eventList, {}, "GET", false);
}

export { retrieveEventList };
