Sha256: 146bd30e7d903846d90834a46a85b0cd68049eedd612fbfb6c62cbef80303f50

Contents?: true

Size: 202 Bytes

Versions: 3

Compression:

Stored size: 202 Bytes

Contents

require 'jersey'
Jersey.setup

class API < Jersey::API::Base
  get '/hello' do
    Jersey.log(at: "hello")
    'hello'
  end

  get '/not_found' do
    raise NotFound, "y u no here?"
  end
end

run API

Version data entries

3 entries across 3 versions & 1 rubygems

Version Path
jersey-0.2.0 examples/readme.ru
jersey-0.1.0 examples/readme.ru
jersey-0.0.3 examples/readme.ru