fix: make template build, lint and test cleanly out of the box

This commit is contained in:
2026-09-25 09:05:40 +03:00
parent f3452876da
commit f0e09ef8c9
24 changed files with 128 additions and 244 deletions
+2 -1
View File
@@ -40,7 +40,8 @@ func (p *Plugin) InitApi() {
next.ServeHTTP(w, r)
return
}
http.Error(w, "Not authorized", http.StatusUnauthorized)
w.WriteHeader(http.StatusUnauthorized)
p.sendError(w, "Not authorized")
})
})