Begin rework of the instances page

This commit is contained in:
Tom Wiesing 2023-11-10 15:47:08 +01:00
parent 207e23778b
commit a2ad685b61
No known key found for this signature in database
6 changed files with 160 additions and 131 deletions

View file

@ -124,13 +124,13 @@ func (admin *Admin) HandleRoute(ctx context.Context, route string) (handler http
{
rebuild := admin.instanceRebuild(ctx)
router.Handler(http.MethodGet, route+"rebuild/:slug", rebuild)
router.Handler(http.MethodGet, route+"instance/:slug/rebuild", rebuild)
}
{
grants := admin.grants(ctx)
router.Handler(http.MethodGet, route+"grants/:slug", grants)
router.Handler(http.MethodPost, route+"grants/", grants) // NOTE(twiesing): This path is intentionally different!
iUsers := admin.instanceUsers(ctx)
router.Handler(http.MethodGet, route+"instance/:slug/users", iUsers)
router.Handler(http.MethodPost, route+"grants/", iUsers) // NOTE(twiesing): This path is intentionally different!
}
// add a router for the login page