mirror of
https://github.com/stack-auth/stack.git
synced 2026-07-20 21:29:36 +08:00
The dashboard's deleteEmailTheme() sends DELETE /internal/email-themes/{id},
but the [id] route only exported GET and PATCH, so Next.js returned 405 and
the UI showed 'Theme not deleted'. Wire up a DELETE handler that reuses the
existing CUD onDelete logic (including the active-theme guard).