diff --git a/backend/routers/shows.py b/backend/routers/shows.py index 2da4246..9f07a42 100644 --- a/backend/routers/shows.py +++ b/backend/routers/shows.py @@ -48,6 +48,17 @@ def read_recent_shows( shows = session.exec(query).all() return shows +@router.get("/upcoming", response_model=List[ShowRead]) +def read_upcoming_shows( + limit: int = Query(default=50, le=100), + session: Session = Depends(get_session) +): + """Get upcoming shows ordered by date ascending""" + from datetime import datetime + query = select(Show).where(Show.date > datetime.now()).order_by(Show.date.asc()).limit(limit) + shows = session.exec(query).all() + return shows + @router.get("/{slug}", response_model=ShowRead) def read_show(slug: str, session: Session = Depends(get_session)): show = session.exec(select(Show).where(Show.slug == slug)).first() diff --git a/frontend/app/shows/page.tsx b/frontend/app/shows/page.tsx index 1577d87..25aef4e 100644 --- a/frontend/app/shows/page.tsx +++ b/frontend/app/shows/page.tsx @@ -76,10 +76,20 @@ function ShowsContent() { return (
- Browse the complete archive of performances. -
++ Browse the complete archive of performances. +
++ See where the flock is headed next. +
+Check back later for tour announcements!
++ An intimate look behind the scenes of Goose's journey. +
+ + {expandedVideoId === "doc-show-upon-time" && ( +