add second flash type

This commit is contained in:
sentriz
2019-07-06 16:41:32 +01:00
parent 4d844bd704
commit 8239db3117
7 changed files with 62 additions and 33 deletions

View File

@@ -1,6 +1,7 @@
package main
import (
"encoding/gob"
"flag"
"log"
"os"
@@ -10,6 +11,7 @@ import (
"github.com/sentriz/gonic/db"
"github.com/sentriz/gonic/server"
"github.com/sentriz/gonic/server/handler"
)
const (
@@ -47,6 +49,7 @@ func main() {
log.Fatalf("error opening database: %v\n", err)
}
defer db.Close()
gob.Register(&handler.Flash{})
s := server.New(
db,
*musicPath,