forked from TrueCloudLab/certificates
Use admin Route function
This commit is contained in:
parent
8bd4e1d73e
commit
439cb81b13
1 changed files with 1 additions and 2 deletions
3
ca/ca.go
3
ca/ca.go
|
@ -221,9 +221,8 @@ func (ca *CA) Init(cfg *config.Config) (*CA, error) {
|
|||
adminDB := auth.GetAdminDatabase()
|
||||
if adminDB != nil {
|
||||
acmeAdminResponder := adminAPI.NewACMEAdminResponder()
|
||||
adminHandler := adminAPI.NewHandler(auth, adminDB, acmeDB, acmeAdminResponder)
|
||||
mux.Route("/admin", func(r chi.Router) {
|
||||
adminHandler.Route(r)
|
||||
adminAPI.Route(r, acmeAdminResponder)
|
||||
})
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue