Sha256: 4ad3aab6a877ac28dd305fc80bbb2679160c82505cbc6ba77ff27003a6bd4472
Contents?: true
Size: 685 Bytes
Versions: 2
Compression:
Stored size: 685 Bytes
Contents
require 'broker/import' require 'broker/export' module Broker module WebRoutes 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 erb :exports end app.get '/api' do erb :api end end end end
Version data entries
2 entries across 2 versions & 1 rubygems
Version | Path |
---|---|
broker-0.1.1 | lib/broker/web_routes.rb |
broker-0.0.9 | lib/broker/web_routes.rb |