import { API_ENDPOINTS, requestGet } from './index.js';

export const fetchEvents = (auth) => {
    const opts = { Authorization: auth ? `Bearer ${auth}` : null };
    return requestGet(API_ENDPOINTS.GET_EVENTS, null, opts);
};
