- Registration screens stubbing and partial buildouts
This commit is contained in:
7
app/api/items.js
Normal file
7
app/api/items.js
Normal file
@@ -0,0 +1,7 @@
|
||||
import { getEndpointUrl, 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);
|
||||
};
|
||||
Reference in New Issue
Block a user