From 05c00b03c4e1503ed7e90b21d3caecc04b35e8d4 Mon Sep 17 00:00:00 2001 From: Guillaume Horel Date: Tue, 20 Jun 2017 22:31:36 -0400 Subject: try to turn on api 2.0 --- main.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'main.go') 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 -- cgit v1.2.3-70-g09d2