admin: unify API to revoke certificates
This commit is contained in:
parent
5a6b27ff18
commit
2e8d28542e
@ -19,11 +19,12 @@ func init() {
|
|||||||
func(_ httprouter.Params, _ []byte) (interface{}, error) { return fic.GenerateCRL() }))
|
func(_ httprouter.Params, _ []byte) (interface{}, error) { return fic.GenerateCRL() }))
|
||||||
|
|
||||||
|
|
||||||
|
router.HEAD("/api/teams/:tid/certificate.p12", apiHandler(teamHandler(GetTeamCertificate)))
|
||||||
router.GET("/api/teams/:tid/certificate.p12", apiHandler(teamHandler(GetTeamCertificate)))
|
router.GET("/api/teams/:tid/certificate.p12", apiHandler(teamHandler(GetTeamCertificate)))
|
||||||
|
router.DELETE("/api/teams/:tid/certificate.p12", apiHandler(teamHandler(
|
||||||
|
func(team fic.Team, _ []byte) (interface{}, error) { return team.RevokeCert() })))
|
||||||
router.GET("/api/teams/:tid/certificate/generate", apiHandler(teamHandler(
|
router.GET("/api/teams/:tid/certificate/generate", apiHandler(teamHandler(
|
||||||
func(team fic.Team, _ []byte) (interface{}, error) { return team.GenerateCert() })))
|
func(team fic.Team, _ []byte) (interface{}, error) { return team.GenerateCert() })))
|
||||||
router.GET("/api/teams/:tid/certificate/revoke", apiHandler(teamHandler(
|
|
||||||
func(team fic.Team, _ []byte) (interface{}, error) { return team.RevokeCert() })))
|
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user