Skip to content

Latest commit

 

History

History
5 lines (3 loc) · 501 Bytes

File metadata and controls

5 lines (3 loc) · 501 Bytes

admin-demo

A public landing page plus an admin-only settings panel at /plugins/admin-demo/admin/. The admin routes are gated by the host before the plugin sees them, so the plugin doesn't have to check auth itself.

Demonstrates: manifest.admin.pages for declaring admin-only routes (the host enforces auth via the glob), the split between public and admin endpoints (registered with @plugin.get / @plugin.post), and persisting settings via plugin config from a JSON-backed config API.