gofmt -s -w .
This commit is contained in:
parent
614dcc8975
commit
2df2f41516
11 changed files with 30 additions and 34 deletions
|
|
@ -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"
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue