feat(schedule): implement multiple schedule providers

This commit is contained in:
2026-06-27 16:03:28 +03:00
parent 8b20eb1220
commit 29fe06462e
25 changed files with 1308 additions and 248 deletions
+2 -2
View File
@@ -3,13 +3,13 @@ import datetime
from fastapi import APIRouter
from gallery.easel.core import AppRequest
from gallery.sketch.schedule.model import ChannelId, Schedule
from gallery.sketch.schedule.model import Channel, Schedule
router = APIRouter(prefix="/schedule")
@router.get("/channels")
async def get_api_schedule_channels(request: AppRequest) -> list[ChannelId]:
async def get_api_schedule_channels(request: AppRequest) -> list[Channel]:
schedule_api = request.app.state.api.schedule
return await schedule_api.get_channels()