package kanban import ( "code.gitea.io/gitea/modules/base" "code.gitea.io/gitea/modules/context" "code.gitea.io/gitea/modules/setting" "net/http" "os" "path" "time" ) func Index(ctx *context.Context) { file := path.Join(setting.StaticRootPath, "public/kanban/index.html") name := "index.html" f, err := os.Open(file) if err != nil { ctx.HTML(http.StatusNotFound, base.TplName("status/404")) return } defer f.Close() ctx.Resp.Header().Set("Content-Type", "text/html") http.ServeContent(ctx.Resp, ctx.Req.Request, name, time.Now(), f) }