Sha256: 377118336c76b087232d73b7223769096ffb3c7ad304e1657164d071aa4aea13

Contents?: true

Size: 321 Bytes

Versions: 2

Compression:

Stored size: 321 Bytes

Contents

module Acme
  class Protected < Grape::API
    namespace :protected do
      http_basic do |username, password|
        username == 'username' && password == 'password'
      end
      desc 'Returns pong if username=username and password=password.'
      get :ping do
        { ping: 'pong' }
      end
    end
  end
end

Version data entries

2 entries across 2 versions & 1 rubygems

Version Path
vitals-0.4.0 integration/multiverse/grape-on-rails/app/api/acme/protected.rb
vitals-0.3.0 integration/multiverse/grape-on-rails/app/api/acme/protected.rb