Module: Broker::WebRoutes
- Defined in:
- lib/broker/web_routes.rb
Class Method Summary collapse
Class Method Details
.registered(app) ⇒ Object
6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 |
# File 'lib/broker/web_routes.rb', line 6 def self.registered(app) app.get "/" do erb :index end app.get '/imports' do erb :imports end app.get '/exports' do # db = params['table'] # app = params['app'] # @fields = [] # @header = "Exports" # if db && app # qb = Broker::Export.new(:app => app) # @fields = qb.get_field_names(db) # @header = "App: #{app.downcase} | Table: #{db.capitalize}" # qb.sign_out # end @fields = [] erb :exports end app.get '/api' do erb :api end end |