mirror of
https://github.com/openziti/zrok.git
synced 2025-08-19 04:06:18 +02:00
new frontend grants admin endpoint handlers; miscellaneous cleanup and organization for consistency (#992)
This commit is contained in:
@@ -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()
|
||||
|
Reference in New Issue
Block a user