Permalink
Find file
Fetching contributors…
Cannot retrieve contributors at this time
18 lines (15 sloc) 363 Bytes
class App < Sinatra::Base
get '/' do
erb :index
end
get '/unauthenticated' do
content_type :json
status 401
JSON.generate(status: 'unauthorized', message: 'Invalid access token.')
end
post '/unauthenticated' do
content_type :json
status 401
JSON.generate(status: 'unauthorized', message: 'Invalid access token.')
end
end