admin interface: Introduce seperate instance page

This commit is contained in:
Tom Wiesing 2023-02-03 14:11:52 +01:00
parent a420155c7c
commit 34d1f557a0
No known key found for this signature in database
7 changed files with 83 additions and 50 deletions

View file

@ -85,6 +85,12 @@ func (admin *Admin) HandleRoute(ctx context.Context, route string) (handler http
router.Handler(http.MethodGet, route, index)
}
// add a handler for the instances page
{
instances := admin.instances(ctx)
router.Handler(http.MethodGet, route+"instance/", instances)
}
// add a handler for the user page
{
users := admin.users(ctx)