aboutsummaryrefslogtreecommitdiffstats
path: root/main.go
diff options
context:
space:
mode:
authorGuillaume Horel <guillaume.horel@gmail.com>2017-06-20 22:31:36 -0400
committerGuillaume Horel <guillaume.horel@gmail.com>2017-06-20 22:31:36 -0400
commit05c00b03c4e1503ed7e90b21d3caecc04b35e8d4 (patch)
tree4fb84d1ecb6dc458551df5ad38ef6f24f1c9eefd /main.go
parent8e59b53a6c7edd435c1779412a015d9f42f47be0 (diff)
downloadlastfm-api-05c00b03c4e1503ed7e90b21d3caecc04b35e8d4.tar.gz
try to turn on api 2.0
Diffstat (limited to 'main.go')
-rw-r--r--main.go2
1 files changed, 1 insertions, 1 deletions
diff --git a/main.go b/main.go
index 6080b69..b2c221c 100644
--- a/main.go
+++ b/main.go
@@ -60,7 +60,7 @@ func (app *App) InitApiServer() *http.Server {
sm.HandleFunc("/", logg(app.mainHandler))
sm.HandleFunc("/np", logg(app.nowPlayingHandler))
sm.HandleFunc("/scrobble", logg(app.scrobbleHandler))
- //http.HandleFunc("/2.0/", logg(app.ApiHandler))
+ sm.HandleFunc("/2.0/", logg(app.ApiHandler))
apiServer.Addr = ":3001"
apiServer.Handler = sm
return apiServer