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