Fix ingress-nginx route rewrite. (#1474)

* Fix ingress-nginx route rewrite.
Update frontend typos.

Signed-off-by: zzjin <tczzjin@gmail.com>

* Support expose kubernetes-dashboard
Support api post method

Signed-off-by: zzjin <tczzjin@gmail.com>

* update frontend location login

Signed-off-by: zzjin <tczzjin@gmail.com>
This commit is contained in:
zzjin
2022-08-06 13:59:13 +08:00
committed by GitHub
parent a3015ff00e
commit 10072d0e99
14 changed files with 595 additions and 292 deletions
+8
View File
@@ -38,3 +38,11 @@ func GoRestful(registerFunc func(*restful.WebService), addr string) error {
return server.ListenAndServe()
}
func GetAccessToken(request *restful.Request) string {
authStr := request.HeaderParameter("Authorization")
if len(authStr) > 7 && authStr[0:7] == "Bearer " {
return authStr[7:]
}
return ""
}