new frontend grants admin endpoint handlers; miscellaneous cleanup and organization for consistency (#992)

This commit is contained in:
Michael Quigley
2025-06-25 12:40:39 -04:00
parent 59e73e8d6b
commit ce37219bac
15 changed files with 452 additions and 13 deletions

View File

@@ -2,6 +2,10 @@ package controller
import (
"context"
"log"
"net/http"
_ "net/http/pprof"
"github.com/go-openapi/loads"
influxdb2 "github.com/influxdata/influxdb-client-go/v2"
"github.com/jessevdk/go-flags"
@@ -15,9 +19,6 @@ import (
"github.com/openziti/zrok/rest_server_zrok/operations/metadata"
"github.com/pkg/errors"
"github.com/sirupsen/logrus"
"log"
"net/http"
_ "net/http/pprof"
)
var (
@@ -51,11 +52,13 @@ func Run(inCfg *config.Config) error {
api.AccountResetPasswordHandler = newResetPasswordHandler(cfg)
api.AccountResetPasswordRequestHandler = newResetPasswordRequestHandler()
api.AccountVerifyHandler = newVerifyHandler()
api.AdminAddFrontendGrantHandler = newAddFrontendGrantHandler()
api.AdminAddOrganizationMemberHandler = newAddOrganizationMemberHandler()
api.AdminCreateAccountHandler = newCreateAccountHandler()
api.AdminCreateFrontendHandler = newCreateFrontendHandler()
api.AdminCreateIdentityHandler = newCreateIdentityHandler()
api.AdminCreateOrganizationHandler = newCreateOrganizationHandler()
api.AdminDeleteFrontendGrantHandler = newDeleteFrontendGrantHandler()
api.AdminDeleteFrontendHandler = newDeleteFrontendHandler()
api.AdminDeleteOrganizationHandler = newDeleteOrganizationHandler()
api.AdminGrantsHandler = newGrantsHandler()