Download this file
| 1 | package sheets |
| 2 | |
| 3 | import ( |
| 4 | "amadan.net/oficina/estilo.git/brand" |
| 5 | "amadan.net/oficina/estilo.git/sky" |
| 6 | "amadan.net/oficina/estilo.git/theme" |
| 7 | "github.com/go-chi/chi/v5" |
| 8 | ) |
| 9 | |
| 10 | // mountEstilo serves what estilo ships from Go rather than as files in |
| 11 | // static/: every app's icon (for the switcher), the sign-in door's sky, |
| 12 | // and estilo's retired v1 Onest files. Those stay answering so a page |
| 13 | // cached before the chrome moved to the system face (estilo AGENTS.md |
| 14 | // row 9) still resolves its stylesheet; no page links them. Each handler |
| 15 | // serves a closed set under its own prefix. |
| 16 | func mountEstilo(r chi.Router) { |
| 17 | r.Handle(brand.Prefix+"*", brand.Handler()) |
| 18 | r.Handle(theme.FontPrefix+"*", theme.FontHandler()) |
| 19 | r.Handle(sky.Prefix+"*", sky.Handler()) |
| 20 | } |
| 21 | |