Removed support for Jamstash in dev mode. Not needed anymore :)
This commit is contained in:
@@ -2,9 +2,7 @@ package server
|
||||
|
||||
import (
|
||||
"net/http"
|
||||
"os"
|
||||
"path"
|
||||
"path/filepath"
|
||||
"time"
|
||||
|
||||
"github.com/deluan/navidrome/conf"
|
||||
@@ -67,10 +65,6 @@ func (a *Server) initRoutes() {
|
||||
http.Redirect(w, r, indexHtml, 302)
|
||||
})
|
||||
|
||||
workDir, _ := os.Getwd()
|
||||
filesDir := filepath.Join(workDir, "Jamstash-master/dist")
|
||||
FileServer(r, "/Jamstash", "/Jamstash", http.Dir(filesDir))
|
||||
|
||||
a.router = r
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user