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