Download this file
| 1 | package home |
| 2 | |
| 3 | import ( |
| 4 | "net/http" |
| 5 | |
| 6 | "github.com/go-chi/chi/v5" |
| 7 | ) |
| 8 | |
| 9 | // PlaceholderHandler serves the original public landing page and approved |
| 10 | // artwork without constructing any identity, directory, or database services. |
| 11 | func PlaceholderHandler() http.Handler { |
| 12 | r := chi.NewRouter() |
| 13 | mountBrand(r) |
| 14 | r.Get("/", func(w http.ResponseWriter, _ *http.Request) { |
| 15 | w.Header().Set("Content-Type", "text/html; charset=utf-8") |
| 16 | _, _ = w.Write(withSky(indexPage)) |
| 17 | }) |
| 18 | return r |
| 19 | } |
| 20 | |