config.ru in rest-ftp-daemon-0.400.0 vs config.ru in rest-ftp-daemon-0.410.0.pre.1
- old
+ new
@@ -10,17 +10,23 @@
[username, password] == ["admin", Conf[:adminpwd]]
end
end
# Serve static assets
-use Rack::Static, urls: ["/css", "/js", "/images"], root: "#{Conf.app_libs}/static/"
+use Rack::Static, root: "#{Conf.app_libs}/static/", urls: [
+ "/css/",
+ "/js/",
+ "/fonts/",
+ "/images/",
+ "/swagger/",
+ MOUNT_SWAGGER_UI,
+ ]
# Rack reloader and mini-profiler
unless Conf.app_env == "production"
# use Rack::Reloader, 1
# use Rack::MiniProfiler
end
-
# Initialize workers
RestFtpDaemon::WorkerPool.instance.start_em_all
# Launch the API