Validate Slack target URLs at creation time (closes #68)
Some checks failed
check / check (push) Has been cancelled

This commit is contained in:
2026-08-07 18:58:44 +07:00
parent 2cc8723997
commit 2500c41113
3 changed files with 76 additions and 1 deletions

View File

@@ -12,3 +12,13 @@ func (s *Handlers) RenderTemplateForTest(
) {
s.renderTemplate(w, r, pageTemplate, data)
}
// BuildSlackTargetConfigForTest exposes buildSlackTargetConfig
// for use in the handlers_test package.
func (s *Handlers) BuildSlackTargetConfigForTest(
w http.ResponseWriter,
r *http.Request,
targetURL string,
) (string, error) {
return s.buildSlackTargetConfig(w, r, targetURL)
}