refactor: clean up code, remove unused methods

This commit is contained in:
Jonas Kaninda
2024-10-27 07:57:52 +01:00
parent cbedfe9ccc
commit 9dc918ece9
4 changed files with 9 additions and 64 deletions

View File

@@ -100,14 +100,3 @@ func (proxyRoute ProxyRoute) ProxyHandler() http.HandlerFunc {
proxy.ServeHTTP(w, r)
}
}
func isAllowed(cors []string, r *http.Request) bool {
for _, origin := range cors {
if origin == r.Header.Get("Origin") {
return true
}
continue
}
return false
}