mirror of https://github.com/gabehf/Koito.git
Compare commits
11 Commits
60f789efaa
...
6cb655166f
| Author | SHA1 | Date |
|---|---|---|
|
|
6cb655166f | 3 weeks ago |
|
|
52e955b1b6 | 3 weeks ago |
|
|
b4ce44c658 | 3 weeks ago |
|
|
1be573e720 | 3 weeks ago |
|
|
1aeb6408aa | 3 weeks ago |
|
|
70f5198781 | 1 month ago |
|
|
cd31b6f2d8 | 2 months ago |
|
|
59f715120f | 2 months ago |
|
|
ccaed823e2 | 2 months ago |
|
|
abd4de319e | 2 months ago |
|
|
986b71dcbc | 2 months ago |
@ -0,0 +1,18 @@
|
||||
package handlers
|
||||
|
||||
import (
|
||||
"net/http"
|
||||
|
||||
"github.com/gabehf/koito/internal/cfg"
|
||||
"github.com/gabehf/koito/internal/utils"
|
||||
)
|
||||
|
||||
type ServerConfig struct {
|
||||
DefaultTheme string `json:"default_theme"`
|
||||
}
|
||||
|
||||
func GetCfgHandler() http.HandlerFunc {
|
||||
return func(w http.ResponseWriter, r *http.Request) {
|
||||
utils.WriteJSON(w, http.StatusOK, ServerConfig{DefaultTheme: cfg.DefaultTheme()})
|
||||
}
|
||||
}
|
||||
Loading…
Reference in new issue