admin interface: Introduce seperate instance page
This commit is contained in:
parent
a420155c7c
commit
34d1f557a0
7 changed files with 83 additions and 50 deletions
|
|
@ -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)
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue