Fix genre IDs changing on re-encounter
[brackets.git] / main.go
diff --git a/main.go b/main.go
index 2cf4a77..81803f7 100644 (file)
--- a/main.go
+++ b/main.go
@@ -3,6 +3,7 @@ package main
 import (
        "git.jacobcasper.com/brackets/env"
        "git.jacobcasper.com/brackets/routes/artist"
+       "git.jacobcasper.com/brackets/routes/genre"
        _ "github.com/mattn/go-sqlite3"
        "log"
        "net/http"
@@ -14,10 +15,17 @@ func main() {
                log.Fatal("Could not set up Env: ", err.Error())
        }
 
+       http.HandleFunc(
+               "/artist/",
+               artist.Index(env),
+       )
+
        http.HandleFunc(
                "/artist/add",
                artist.Add(env),
        )
 
+       http.HandleFunc("/genre", genre.Index(env))
+
        log.Fatal(http.ListenAndServe(":8080", nil))
 }