Move instance > purge to a separate page
This commit is contained in:
parent
a2ad685b61
commit
1379b4d11a
5 changed files with 79 additions and 20 deletions
|
|
@ -73,6 +73,7 @@ var (
|
|||
menuInstance = component.DummyMenuItem()
|
||||
menuRebuild = component.DummyMenuItem()
|
||||
menuGrants = component.DummyMenuItem()
|
||||
menuPurge = component.DummyMenuItem()
|
||||
)
|
||||
|
||||
func (admin *Admin) HandleRoute(ctx context.Context, route string) (handler http.Handler, err error) {
|
||||
|
|
@ -133,6 +134,11 @@ func (admin *Admin) HandleRoute(ctx context.Context, route string) (handler http
|
|||
router.Handler(http.MethodPost, route+"grants/", iUsers) // NOTE(twiesing): This path is intentionally different!
|
||||
}
|
||||
|
||||
{
|
||||
purge := admin.instancePurge(ctx)
|
||||
router.Handler(http.MethodGet, route+"instance/:slug/purge", purge)
|
||||
}
|
||||
|
||||
// add a router for the login page
|
||||
router.Handler(http.MethodPost, route+"login", admin.loginHandler(ctx))
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue