owltide/server/api/admin
Hornwitser 753da6d3d4 Refactor to persist and reliably deliver events
Store events that are to be broadcasted in the database, and fetch
events to serve in the /api/event stream to the client from the
database.  This ensures that events are not lost if the operation to
open the stream takes longer than usual, or the client was not connected
at the time the event was broadcast.

To ensure no events are lost in the transition from server generating
the page to the client hydrating and establishing a connection with the
event stream, the /api/last-event-id endpoint is first queried on the
server before any other entities is fetched from the database.  The
client then passes this id when establishing the event stream, and
receives all events greater than that id.
2025-09-20 20:36:37 +02:00
..
database-export.post.ts License under AGPL version 3 or later 2025-06-30 18:58:24 +02:00
database-import-demo.post.ts Refactor demo login as an authentication method 2025-07-09 18:01:26 +02:00
database-import.post.ts Refactor sessions to frequently rotate 2025-07-07 22:50:59 +02:00
delete-database.post.ts License under AGPL version 3 or later 2025-06-30 18:58:24 +02:00
delete-schedule.post.ts License under AGPL version 3 or later 2025-06-30 18:58:24 +02:00
user.patch.ts Refactor to persist and reliably deliver events 2025-09-20 20:36:37 +02:00