aboutsummaryrefslogtreecommitdiffstats
path: root/src/web
diff options
context:
space:
mode:
Diffstat (limited to 'src/web')
-rw-r--r--src/web/src/lib/events.js7
1 files changed, 7 insertions, 0 deletions
diff --git a/src/web/src/lib/events.js b/src/web/src/lib/events.js
new file mode 100644
index 00000000..5c349a08
--- /dev/null
+++ b/src/web/src/lib/events.js
@@ -0,0 +1,7 @@
+import api from './api';
+
+export const list = async ({ offset, limit }) => {
+ const response = (await api.get(`/events?offset=${offset}&limit=${limit}`))
+ .data;
+ return response;
+};