mirror of
https://github.com/hkalexling/Mango.git
synced 2026-04-03 00:03:14 -04:00
- group config/library/storage into context
This commit is contained in:
11
src/mango.cr
11
src/mango.cr
@@ -1,11 +1,6 @@
|
||||
require "./server"
|
||||
require "./config"
|
||||
require "./library"
|
||||
require "./storage"
|
||||
require "./context"
|
||||
|
||||
config = Config.load
|
||||
library = Library.new config.library_path, config.scan_interval
|
||||
storage = Storage.new config.db_path
|
||||
|
||||
server = Server.new config, library, storage
|
||||
context = Context.new
|
||||
server = Server.new context
|
||||
server.start
|
||||
|
||||
Reference in New Issue
Block a user