mirror of
https://github.com/navidrome/navidrome.git
synced 2025-04-03 20:47:35 +03:00
Preparing for new scanner
This commit is contained in:
parent
02d642814b
commit
25686c1742
11 changed files with 31 additions and 28 deletions
|
@ -9,7 +9,7 @@ import (
|
|||
|
||||
"github.com/cloudsonic/sonic-server/conf"
|
||||
"github.com/cloudsonic/sonic-server/log"
|
||||
"github.com/cloudsonic/sonic-server/scanner"
|
||||
"github.com/cloudsonic/sonic-server/scanner_legacy"
|
||||
"github.com/go-chi/chi"
|
||||
"github.com/go-chi/chi/middleware"
|
||||
"github.com/go-chi/cors"
|
||||
|
@ -18,11 +18,11 @@ import (
|
|||
const Version = "0.2"
|
||||
|
||||
type Server struct {
|
||||
Importer *scanner.Importer
|
||||
Importer *scanner_legacy.Importer
|
||||
router *chi.Mux
|
||||
}
|
||||
|
||||
func New(importer *scanner.Importer) *Server {
|
||||
func New(importer *scanner_legacy.Importer) *Server {
|
||||
a := &Server{Importer: importer}
|
||||
showBanner(Version)
|
||||
initMimeTypes()
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue