mirror of
https://github.com/hkalexling/Mango.git
synced 2026-03-20 00:00:48 -04:00
- create scan method to prepare for periodic scanning
This commit is contained in:
@@ -265,7 +265,7 @@ class Server
|
||||
|
||||
post "/api/admin/scan" do |env|
|
||||
start = Time.utc
|
||||
@library = Library.new @config.@library_path
|
||||
@library.scan
|
||||
ms = (Time.utc - start).total_milliseconds
|
||||
send_json env, {
|
||||
"milliseconds" => ms,
|
||||
|
||||
Reference in New Issue
Block a user