feat: schedule history — list, detail, rollback endpoints

This commit is contained in:
2026-03-17 14:38:51 +01:00
parent c0fb8f69de
commit ad3a73f061
4 changed files with 157 additions and 1 deletions

View File

@@ -27,6 +27,15 @@ pub fn router() -> Router<AppState> {
"/{id}/schedule",
post(schedule::generate_schedule).get(schedule::get_active_schedule),
)
.route("/{id}/schedule/history", get(schedule::list_schedule_history))
.route(
"/{id}/schedule/history/{gen_id}",
get(schedule::get_schedule_history_entry),
)
.route(
"/{id}/schedule/history/{gen_id}/rollback",
post(schedule::rollback_schedule),
)
.route("/{id}/now", get(broadcast::get_current_broadcast))
.route("/{id}/epg", get(broadcast::get_epg))
.route("/{id}/stream", get(broadcast::get_stream))