kube CSR: preload UI fields
This commit is contained in:
@@ -42,7 +42,11 @@ func registerWS(rest *restful.Container) {
|
||||
Param(ws.PathParameter("asset", "the requested asset")).
|
||||
Doc("Fetch an asset via a download token")).
|
||||
Route(ws.GET("/download-set").To(wsDownloadSet)).
|
||||
Route(ws.GET("/download-set/{kind}/{name}/{asset}").To(wsDownloadSetAsset))
|
||||
Route(ws.GET("/download-set/{kind}/{name}/{asset}").To(wsDownloadSetAsset)).
|
||||
Route(ws.POST("/parse-kube-csr").To(wsParseKubeCSR).
|
||||
Reads(KubeCSRParseReq{}).
|
||||
Writes(KubeCSRParseResp{}).
|
||||
Doc("Parse a Kubernetes CSR PEM and return the subject fields"))
|
||||
|
||||
rest.Add(ws)
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user