aboutsummaryrefslogtreecommitdiffstats
path: root/src/web
diff options
context:
space:
mode:
authorJP Dillingham <jp@dillingham.me>2024-09-29 16:57:38 -0500
committerJP Dillingham <jp@dillingham.me>2024-09-29 16:57:38 -0500
commit481895560f78b687b6958646dd95d932c09bae90 (patch)
tree09ab618718cec8c4a330925249a166003236e268 /src/web
parent4e5cab89998610c6143c37da26c89f94eade4eee (diff)
downloadslskd-481895560f78b687b6958646dd95d932c09bae90.tar.gz
add events lib
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;
+};