- Cleanup
This commit is contained in:
7
app/api/events.js
Normal file
7
app/api/events.js
Normal file
@@ -0,0 +1,7 @@
|
||||
import { API_ENDPOINTS, requestGet } from './index.js';
|
||||
|
||||
export const fetchEvents = (auth) => {
|
||||
const path = String(API_ENDPOINTS.GET_EVENTS);
|
||||
const opts = { Authorization: auth ? `Bearer ${auth}` : null };
|
||||
return requestGet(path, null, opts);
|
||||
};
|
||||
Reference in New Issue
Block a user