summaryrefslogtreecommitdiffstats
path: root/web/web.go
diff options
context:
space:
mode:
authorJoram Wilander <jwawilander@gmail.com>2018-05-14 11:27:30 -0400
committerGitHub <noreply@github.com>2018-05-14 11:27:30 -0400
commit6a9aa855d1c862e4d39f8c00c6b7425405e7a612 (patch)
tree16f6326241b878a51e286c7bf70078b628b1f03d /web/web.go
parent47250c6629416b628a19e5571ac89f7b4646418c (diff)
downloadchat-6a9aa855d1c862e4d39f8c00c6b7425405e7a612.tar.gz
chat-6a9aa855d1c862e4d39f8c00c6b7425405e7a612.tar.bz2
chat-6a9aa855d1c862e4d39f8c00c6b7425405e7a612.zip
Move SAML endpoints out of api package (#8780)
Diffstat (limited to 'web/web.go')
-rw-r--r--web/web.go7
1 files changed, 7 insertions, 0 deletions
diff --git a/web/web.go b/web/web.go
index 94363cfde..53276953e 100644
--- a/web/web.go
+++ b/web/web.go
@@ -32,6 +32,7 @@ func NewWeb(a *app.App, root *mux.Router) *Web {
web.InitStatic()
web.InitWebhooks()
+ web.InitSaml()
return web
}
@@ -71,3 +72,9 @@ func Handle404(a *app.App, w http.ResponseWriter, r *http.Request) {
func IsApiCall(r *http.Request) bool {
return strings.Index(r.URL.Path, "/api/") == 0
}
+
+func ReturnStatusOK(w http.ResponseWriter) {
+ m := make(map[string]string)
+ m[model.STATUS] = model.STATUS_OK
+ w.Write([]byte(model.MapToJson(m)))
+}