Sha256: 274716cdd5731e662f2fd13381382a0e424cdadc6d304457e26a3dcb8542f946
Contents?: true
Size: 713 Bytes
Versions: 3
Compression:
Stored size: 713 Bytes
Contents
RailsDb::Engine.routes.draw do root :to => 'dashboard#index' resources :tables, :only => [:index, :show] do get 'data' get 'csv' get 'truncate' get 'destroy' # to handle opens in new window (GET) end get '/sql' => 'sql#index', as: :sql get '/import' => 'sql#import', as: :sql_import post '/execute' => 'sql#execute', as: :sql_execute post '/sql-csv' => 'sql#csv', as: :sql_csv post '/import-start' => 'sql#import_start', as: :sql_start_import get '/data-table' => 'dashboard#data_table', as: :data_table get '/standalone' => 'dashboard#standalone', as: :standalone end if RailsDb.automatic_routes_mount Rails.application.routes.draw do mount_rails_db_routes end end
Version data entries
3 entries across 3 versions & 1 rubygems
Version | Path |
---|---|
rails_db-0.7.2 | config/routes.rb |
rails_db-0.7.1 | config/routes.rb |
rails_db-0.7 | config/routes.rb |