aboutsummaryrefslogtreecommitdiffstats
path: root/dashboard/app/api.go
diff options
context:
space:
mode:
Diffstat (limited to 'dashboard/app/api.go')
-rw-r--r--dashboard/app/api.go9
1 files changed, 9 insertions, 0 deletions
diff --git a/dashboard/app/api.go b/dashboard/app/api.go
index 571812d89..335d7ad2f 100644
--- a/dashboard/app/api.go
+++ b/dashboard/app/api.go
@@ -412,6 +412,15 @@ func stringInList(list []string, str string) bool {
return false
}
+func stringsInList(list, str []string) bool {
+ for _, s := range str {
+ if !stringInList(list, s) {
+ return false
+ }
+ }
+ return true
+}
+
func apiReportBuildError(c context.Context, ns string, r *http.Request) (interface{}, error) {
req := new(dashapi.BuildErrorReq)
if err := json.NewDecoder(r.Body).Decode(req); err != nil {