8 lines
291 B
JavaScript
8 lines
291 B
JavaScript
import { API_ENDPOINTS, requestGet } from './index.js';
|
|
|
|
export const fetchItems = (eventId, auth) => {
|
|
const path = String(API_ENDPOINTS.GET_ITEMS).replace(/:event_id$/, eventId);
|
|
const opts = { Authorization: auth ? `Bearer ${auth}` : null };
|
|
return requestGet(path, null, opts);
|
|
};
|