mirror of
https://github.com/cesanta/mongoose.git
synced 2026-11-02 13:20:51 +00:00
event table POST request 404 error
This commit is contained in:
1 parent
c63135ec7f
commit
8f19ee7b97
2 files changed
+4
-4
No files matched your search
@@ -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));
|
||||
|
||||
Reference in new issue
Block a user