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) and Onest, Calma's |
| 12 | // typeface. Both handlers serve closed sets under their own prefixes. |
| 13 | func mountEstilo(r chi.Router) { |
| 14 | r.Handle(brand.Prefix+"*", brand.Handler()) |
| 15 | r.Handle(theme.FontPrefix+"*", theme.FontHandler()) |
| 16 | r.Handle(sky.Prefix+"*", sky.Handler()) |
| 17 | } |
| 18 | |