Source

Sinatra Bootstrap Starter / routes.rb

Full commit
1
2
3
4
5
6
7
8
9
require "./routes/user.rb"

get '/' do
  if logged_in?
    haml :index
  else
    redirect '/login'
  end
end