feat(cabana): mail preview and test send to yourself

Co-authored-by: Cursor <cursoragent@cursor.com>
This commit is contained in:
2026-11-13 13:02:49 +01:00
parent 4fd2ed07eb
commit 0c73c8d4f1
22 changed files with 1233 additions and 16 deletions

View File

@@ -354,11 +354,12 @@ func (s *service) mount(r pact.Router) {
g.Get("/field-types", s.fieldTypesList)
// Form previews render through RenderMarkdown; nothing is stored.
g.Post("/markdown/preview", requireAjax(s.markdownPreview))
// Mail image library (absolute public URLs); preview and test-send
// join these in plan 35-02 Task 4.
// Mail image library, preview and test-send (postcard Editor).
g.Get("/mail/images", s.mailImagesList)
g.Get("/mail/images/{id}", s.mailImagesShow)
g.Post("/mail/images", requireAjax(s.mailImagesUpload))
g.Post("/mail/preview", requireAjax(s.mailPreview))
g.Post("/mail/test-send", interactiveOnly(requireAjax(s.mailTestSend)))
g.Get("/settings", s.settingsList)
// The read-only Plugins screen (backend.view_plugins).
g.Get("/plugins", s.pluginsInstalled)