mirror of
https://github.com/1f349/tulip.git
synced 2024-12-22 16:24:10 +00:00
Rename css bytes variable
This commit is contained in:
parent
69db84cd14
commit
0f608d6b2f
@ -157,7 +157,7 @@ func NewHttpServer(conf Conf, db *database.DB, privKey []byte) *http.Server {
|
|||||||
|
|
||||||
// theme styles
|
// theme styles
|
||||||
r.GET("/theme/style.css", func(rw http.ResponseWriter, req *http.Request, params httprouter.Params) {
|
r.GET("/theme/style.css", func(rw http.ResponseWriter, req *http.Request, params httprouter.Params) {
|
||||||
http.ServeContent(rw, req, "style.css", time.Now(), bytes.NewReader(theme.ThemeCss))
|
http.ServeContent(rw, req, "style.css", time.Now(), bytes.NewReader(theme.DefaultThemeCss))
|
||||||
})
|
})
|
||||||
|
|
||||||
// login steps
|
// login steps
|
||||||
|
@ -3,4 +3,4 @@ package theme
|
|||||||
import _ "embed"
|
import _ "embed"
|
||||||
|
|
||||||
//go:embed style.css
|
//go:embed style.css
|
||||||
var ThemeCss []byte
|
var DefaultThemeCss []byte
|
||||||
|
Loading…
Reference in New Issue
Block a user