routes.rb 417 B

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