projects
/
brackets.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
Add artist lookup by genre
[brackets.git]
/
main.go
diff --git
a/main.go
b/main.go
index
81803f7
..
b59a627
100644
(file)
--- a/
main.go
+++ b/
main.go
@@
-15,15
+15,9
@@
func main() {
log.Fatal("Could not set up Env: ", err.Error())
}
log.Fatal("Could not set up Env: ", err.Error())
}
- http.HandleFunc(
- "/artist/",
- artist.Index(env),
- )
-
- http.HandleFunc(
- "/artist/add",
- artist.Add(env),
- )
+ http.HandleFunc("/artist/", artist.Index(env))
+ http.HandleFunc("/artist/genre", artist.ByGenre(env))
+ http.HandleFunc("/artist/add", artist.Add(env))
http.HandleFunc("/genre", genre.Index(env))
http.HandleFunc("/genre", genre.Index(env))