Sha256: ed6963c029bab23e4cd20d1a6ffd17d1a93de8d7dd98d8bcf57ebd47415d0865

Contents?: true

Size: 335 Bytes

Versions: 8

Compression:

Stored size: 335 Bytes

Contents

class Api::V1::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: "Hello #{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/v1/hellos_controller.rb
stitches-5.0.0.RC1 spec/fake_app/app/controllers/api/v1/hellos_controller.rb
stitches-4.2.2 spec/fake_app/app/controllers/api/v1/hellos_controller.rb
stitches-4.2.1 spec/fake_app/app/controllers/api/v1/hellos_controller.rb
stitches-4.2.0 spec/fake_app/app/controllers/api/v1/hellos_controller.rb
stitches-4.2.0.RC3 spec/fake_app/app/controllers/api/v1/hellos_controller.rb
stitches-4.2.0.RC2 spec/fake_app/app/controllers/api/v1/hellos_controller.rb
stitches-4.2.0.RC1 spec/fake_app/app/controllers/api/v1/hellos_controller.rb