func root(c *api.Context, w http.ResponseWriter, r *http.Request) { if !CheckBrowserCompatability(c, r) { return } if api.IsApiCall(r) { api.Handle404(w, r) return } http.ServeFile(w, r, utils.FindDir(CLIENT_DIR)+"root.html") }
func root(c *api.Context, w http.ResponseWriter, r *http.Request) { if !CheckBrowserCompatability(c, r) { return } if api.IsApiCall(r) { api.Handle404(w, r) return } w.Header().Set("Cache-Control", "no-cache, max-age=31556926, public") http.ServeFile(w, r, utils.FindDir(CLIENT_DIR)+"root.html") }
func root(c *api.Context, w http.ResponseWriter, r *http.Request) { if !CheckBrowserCompatability(c, r) { w.Header().Set("Cache-Control", "no-store") w.WriteHeader(http.StatusBadRequest) w.Write([]byte(c.T("web.check_browser_compatibility.app_error"))) return } if api.IsApiCall(r) { api.Handle404(w, r) return } w.Header().Set("Cache-Control", "no-cache, max-age=31556926, public") http.ServeFile(w, r, utils.FindDir(model.CLIENT_DIR)+"root.html") }