oficina / home Public

Clone
git clone https://amadan.net/oficina/home

Plain git — no account needed to clone.

Download

Download this file

1package home
2
3import (
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.
11func 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