event table POST request 404 error

This commit is contained in:
robert committed 2023-06-23 11:35:42 -04:00
1 parent c63135ec7f
commit 8f19ee7b97
2 files changed
+4 -4

No files matched your search

+1 -1
View File
@@ -55,7 +55,7 @@ function Events({}) {
const [page, setPage] = useState(1);
const refresh = () =>
fetch('/api/events/get', {
fetch('/api/events/set', {
method: 'POST', body: JSON.stringify({page: page}),
}).then(r => r.json())
.then(r => setEvents(r));