config.ru 431 B

1234567891011121314151617181920212223242526272829
  1. # frozen_string_literal: true
  2. # controllers to load
  3. require File.join(File.dirname(__FILE__), 'web', 'controllers')
  4. # serve up static assets using rack
  5. map "/css" do
  6. run Rack::Directory.new("#{File.join(File.dirname(__FILE__), 'web', 'static', 'css')}")
  7. end
  8. map '/' do
  9. run Toppage
  10. end
  11. map '/load' do
  12. run Dataloader
  13. end
  14. map '/view' do
  15. run Views
  16. end
  17. map '/search' do
  18. run Search
  19. end
  20. map '/graph' do
  21. run Graph
  22. end