Added frontend.
Change-Id: I8efe591dcd693c99ffdbe953415d8b05c02a3644
This commit is contained in:
+3
-1
@@ -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 == "" {
|
||||
|
||||
Reference in New Issue
Block a user