mirror of
https://github.com/labring/sealos.git
synced 2026-09-24 15:46:19 +08:00
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:
@@ -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 ""
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user