routes.rb 383 B

123456789101112131415
  1. Blazer::Engine.routes.draw do
  2. resources :queries do
  3. post :run, on: :collection # err on the side of caution
  4. post :refresh, on: :member
  5. get :tables, on: :collection
  6. get :schema, on: :collection
  7. end
  8. resources :checks, except: [:show] do
  9. get :run, on: :member
  10. end
  11. resources :dashboards do
  12. post :refresh, on: :member
  13. end
  14. root to: "queries#home"
  15. end