mirror of
https://github.com/nkanaev/yarr.git
synced 2025-11-09 19:08:57 +00:00
gofmt -s -w .
This commit is contained in:
@@ -58,8 +58,8 @@ func (s *Server) handler() http.Handler {
|
||||
}
|
||||
|
||||
func (s *Server) handleIndex(c *router.Context) {
|
||||
c.HTML(http.StatusOK, assets.Template("index.html"), map[string]interface{} {
|
||||
"settings": s.db.GetSettings(),
|
||||
c.HTML(http.StatusOK, assets.Template("index.html"), map[string]interface{}{
|
||||
"settings": s.db.GetSettings(),
|
||||
"authenticated": s.Username != "" && s.Password != "",
|
||||
})
|
||||
}
|
||||
|
||||
@@ -20,7 +20,7 @@ func TestStatic(t *testing.T) {
|
||||
func TestStaticWithBase(t *testing.T) {
|
||||
server := NewServer(nil, "127.0.0.1:8000")
|
||||
server.BasePath = "/sub"
|
||||
|
||||
|
||||
handler := server.handler()
|
||||
url := "/sub/static/javascripts/app.js"
|
||||
|
||||
|
||||
Reference in New Issue
Block a user