require 'sinatra'

class Redirector < Sinatra::Base
  get '/' do
    'homepage'
  end

  get '/:short_link' do
    "i'm redirecting you to #{params[:short_link]}"
  end
end

require 'sinatra'

class Redirector < Sinatra::Base
  not_found do
    halt 404, 'Not found'
  end

  get '/' do
    'homepage'
  end

  get '/:short_link' do
    # Find shortlink in redis.
    # Do `redirect "http://google.com"`
  end
end

Add not_found and redirect overview
Add not_found and redirect overview
