Sha256: 747f93117085e63cf11660455041544046d1ef5ba704a14d07bd4b5b7af82e47
Contents?: true
Size: 1.24 KB
Versions: 10
Compression:
Stored size: 1.24 KB
Contents
# encoding: utf-8 module Mutx module Routes module Api module CustomParams class Routes < App define do on get do on ":name/value" do |name| output = {} param = Mutx::API::CustomParams.get(name) output["app"] = Mutx::Support::Configuration.project_name output["request"] = "Custom Parameter value" output["custom_param_name"] = param["name"] output["value"] = param["value"] res.write output.to_json end on ":name" do |name| output = {} param = Mutx::API::CustomParams.get(name) output["custom_param"] = param output["app"] = Mutx::Support::Configuration.project_name res.write output.to_json end on root do output ={} output["custom_params"] = Mutx::API::CustomParams.list() output["request"]="Custom Params" output["app"]=Mutx::Support::Configuration.project_name res.write output.to_json end end end end end end end end
Version data entries
10 entries across 10 versions & 1 rubygems