- Registration screens stubbing and partial buildouts

This commit is contained in:
Mike Fitzpatrick
2019-08-05 16:59:38 -04:00
parent a9f4324f29
commit c123ec385c
17 changed files with 505 additions and 23 deletions

7
app/api/items.js Normal file
View 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);
};