Skip to content

Admin Carousel Dashboard: Submitted Slides Do Not Appear - #179

Merged
calebyhan merged 1 commit into
mainfrom
166/admin-carousel-get-route
Jul 4, 2026
Merged

Admin Carousel Dashboard: Submitted Slides Do Not Appear#179
calebyhan merged 1 commit into
mainfrom
166/admin-carousel-get-route

Conversation

@calebyhan

Copy link
Copy Markdown
Contributor

The admin Carousel page calls GET /api/admin/carousel to populate its slide list. This route did not exist -- the admin carousel router only defined POST, PUT /reorder, PUT /{id}, and DELETE /{id} -- so the request 405'd, the error was caught silently, and the list always rendered empty even after slides were created.

Changes:

  • Added a GET /api/admin/carousel route returning all slides (active and inactive) ordered by display_order, protected by get_current_user, mirroring the list-all pattern used by every other admin router
  • Left the public GET /api/carousel route (which filters to is_active == true) unchanged
  • Confirmed the new route doesn't conflict with PUT /reorder (different HTTP method, same prefix)

Closes #166

The admin carousel dashboard called GET /admin/carousel to load
submitted slides, but the route didn't exist, causing a 405 that the
frontend silently swallowed. Add a list-all route mirroring the
pattern used by every other admin router in this codebase.
@github-actions

Copy link
Copy Markdown

Test Results

570 tests  ±0   570 ✅ ±0   49s ⏱️ -1s
  1 suites ±0     0 💤 ±0 
  1 files   ±0     0 ❌ ±0 

Results for commit 8d883d7. ± Comparison against base commit bc11881.

@MasonMines2006 MasonMines2006 left a comment

Copy link
Copy Markdown
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM

@calebyhan
calebyhan merged commit bcd692b into main Jul 4, 2026
3 checks passed
@calebyhan
calebyhan deleted the 166/admin-carousel-get-route branch July 4, 2026 15:22
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Admin Carousel Dashboard: Submitted Slides Do Not Appear

2 participants