From e43e42139a431cb5d12b339d359da17e157f20bc Mon Sep 17 00:00:00 2001 From: Jens Langhammer Date: Sat, 5 Jun 2021 19:38:24 +0200 Subject: [PATCH] web: migrate templates back to django Signed-off-by: Jens Langhammer --- internal/web/web_static.go | 11 ----------- web/rollup.config.js | 2 -- web/static.go | 6 ------ 3 files changed, 19 deletions(-) diff --git a/internal/web/web_static.go b/internal/web/web_static.go index 921289cef..41452f480 100644 --- a/internal/web/web_static.go +++ b/internal/web/web_static.go @@ -30,17 +30,6 @@ func (ws *WebServer) configureStatic() { rw.WriteHeader(200) rw.Write(staticWeb.SecurityTxt) }) - // Interfaces - ws.lh.Path("/if/admin/").HandlerFunc(func(rw http.ResponseWriter, r *http.Request) { - rw.Header()["Content-Type"] = []string{"text/html"} - rw.WriteHeader(200) - rw.Write(staticWeb.InterfaceAdmin) - }) - ws.lh.Path("/if/flow/{slug}/").HandlerFunc(func(rw http.ResponseWriter, r *http.Request) { - rw.Header()["Content-Type"] = []string{"text/html"} - rw.WriteHeader(200) - rw.Write(staticWeb.InterfaceFlow) - }) // Media files, always local ws.lh.PathPrefix("/media").Handler(http.StripPrefix("/media", http.FileServer(http.Dir(config.G.Paths.Media)))) } diff --git a/web/rollup.config.js b/web/rollup.config.js index ee4f03118..7e9a7650e 100644 --- a/web/rollup.config.js +++ b/web/rollup.config.js @@ -23,8 +23,6 @@ const resources = [ { src: "src/authentik.css", dest: "dist/" }, { src: "node_modules/@patternfly/patternfly/assets/*", dest: "dist/assets/" }, - { src: "src/interfaces/admin/index.html", dest: "dist/if/admin/" }, - { src: "src/interfaces/flow/index.html", dest: "dist/if/flow/" }, { src: "src/assets/*", dest: "dist/assets" }, { src: "./icons/*", dest: "dist/assets/icons" }, ]; diff --git a/web/static.go b/web/static.go index f039f838b..44ce69706 100644 --- a/web/static.go +++ b/web/static.go @@ -8,12 +8,6 @@ var StaticDist embed.FS //go:embed authentik var StaticAuthentik embed.FS -//go:embed dist/if/flow/index.html -var InterfaceFlow []byte - -//go:embed dist/if/admin/index.html -var InterfaceAdmin []byte - //go:embed robots.txt var RobotsTxt []byte