Skip to content

Commit

Permalink
fix: initialize mimetypes for tests
Browse files Browse the repository at this point in the history
  • Loading branch information
deluan committed Feb 5, 2020
1 parent 28bad95 commit e5e3551
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 3 deletions.
4 changes: 2 additions & 2 deletions server/mime_types.go → consts/mime_types.go
@@ -1,8 +1,8 @@
package server
package consts

import "mime"

func initMimeTypes() {
func init() {
mt := map[string]string{
".mp3": "audio/mpeg",
".ogg": "audio/ogg",
Expand Down
1 change: 0 additions & 1 deletion server/server.go
Expand Up @@ -23,7 +23,6 @@ type Server struct {

func New(scanner *scanner.Scanner, ds model.DataStore) *Server {
a := &Server{Scanner: scanner, ds: ds}
initMimeTypes()
initialSetup(ds)
a.initRoutes()
a.initScanner()
Expand Down

0 comments on commit e5e3551

Please sign in to comment.