feat: schedule history — list, detail, rollback endpoints
This commit is contained in:
@@ -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))
|
||||
|
||||
Reference in New Issue
Block a user