Implement Last.FM Desktop Auth flow endpoints
This commit is contained in:
@@ -15,7 +15,6 @@ import (
|
||||
"github.com/navidrome/navidrome/log"
|
||||
"github.com/navidrome/navidrome/model"
|
||||
"github.com/navidrome/navidrome/ui"
|
||||
"github.com/navidrome/navidrome/utils"
|
||||
)
|
||||
|
||||
type Server struct {
|
||||
@@ -85,15 +84,6 @@ func (s *Server) initRoutes() {
|
||||
r.Post("/createAdmin", createAdmin(s.ds))
|
||||
})
|
||||
|
||||
r.Get("/api/lastfm/link/status", func(w http.ResponseWriter, r *http.Request) {
|
||||
rs := "false"
|
||||
c := utils.ParamInt(r, "c", 0)
|
||||
if (c == 4) {
|
||||
rs = "true"
|
||||
}
|
||||
_, _ = w.Write([]byte(rs))
|
||||
})
|
||||
|
||||
// Redirect root to UI URL
|
||||
r.Get("/*", func(w http.ResponseWriter, r *http.Request) {
|
||||
http.Redirect(w, r, s.appRoot+"/", http.StatusFound)
|
||||
|
||||
Reference in New Issue
Block a user