Sha256: 5e23ab1c8bd7d61d94c530a35d85ef5d4ff94be2638c563d696942ab19cc4b2c

Contents?: true

Size: 339 Bytes

Versions: 8

Compression:

Stored size: 339 Bytes

Contents

class Api::V2::HellosController < Api::ApiController
  def show
    name = request.env[Stitches.configuration.env_var_to_hold_api_client]&.name || "NameNotFound"
    id =  request.env[Stitches.configuration.env_var_to_hold_api_client_primary_key] || "IdNotFound"
    render json: { hello: "Greetings #{name}, your id is #{id}" }
  end
end

Version data entries

8 entries across 8 versions & 1 rubygems

Version Path
stitches-5.0.0 spec/fake_app/app/controllers/api/v2/hellos_controller.rb
stitches-5.0.0.RC1 spec/fake_app/app/controllers/api/v2/hellos_controller.rb
stitches-4.2.2 spec/fake_app/app/controllers/api/v2/hellos_controller.rb
stitches-4.2.1 spec/fake_app/app/controllers/api/v2/hellos_controller.rb
stitches-4.2.0 spec/fake_app/app/controllers/api/v2/hellos_controller.rb
stitches-4.2.0.RC3 spec/fake_app/app/controllers/api/v2/hellos_controller.rb
stitches-4.2.0.RC2 spec/fake_app/app/controllers/api/v2/hellos_controller.rb
stitches-4.2.0.RC1 spec/fake_app/app/controllers/api/v2/hellos_controller.rb