Added frontend.

Change-Id: I8efe591dcd693c99ffdbe953415d8b05c02a3644
This commit is contained in:
dm
2016-05-14 20:14:24 -07:00
committed by sm
parent adcc05ea3a
commit 11f88feef0
22 changed files with 1397 additions and 67 deletions
+3 -1
View File
@@ -58,6 +58,8 @@ type config struct {
Cert string
Key string
Static string
}
func main() {
@@ -115,7 +117,7 @@ func main() {
}
log.Printf("serving at: http://%s:%d/", hostname, c.Port)
sm := http.NewServeMux()
vain.NewServer(sm, db)
vain.NewServer(sm, db, c.Static)
addr := fmt.Sprintf(":%d", c.Port)
if c.Cert == "" || c.Key == "" {