mirror of
https://github.com/NginxProxyManager/nginx-proxy-manager.git
synced 2025-06-18 18:16:26 +00:00
Add backend unit tests
This commit is contained in:
@ -22,3 +22,12 @@ func Expansion(next http.Handler) http.Handler {
|
||||
}
|
||||
})
|
||||
}
|
||||
|
||||
// GetExpandFromContext returns the Expansion setting
|
||||
func GetExpandFromContext(r *http.Request) []string {
|
||||
expand, ok := r.Context().Value(c.ExpansionCtxKey).([]string)
|
||||
if !ok {
|
||||
return nil
|
||||
}
|
||||
return expand
|
||||
}
|
||||
|
Reference in New Issue
Block a user