Sha256: 7a54eab87abb4e560f0ec6d7e642d7f371920e37a7fe0d5f357a0900e415fad5

Contents?: true

Size: 407 Bytes

Versions: 1

Compression:

Stored size: 407 Bytes

Contents

require 'bundler/setup'
require 'sinatra/base'
require 'pathname'
require 'snap_search'

class SinatraSnapSearch < Sinatra::Base
  
  configure do
    set :root, SnapSearch.root.join('examples', 'sinatra')
    enable :sessions, :logging, :method_override, :static
    
    use Rack::SnapSearch, email: 'email', key: 'key'
  end
  
  get '/' do
    redirect to('/index.html')
  end
  
end

Version data entries

1 entries across 1 versions & 1 rubygems

Version Path
snapsearch-client-ruby-0.1.0 examples/sinatra/lib/sinatra_snap_search.rb