Sha256: 229bf03cf047cbe601aaa68996ddd0b49e7f7c0666be158bf051941f650a1327
Contents?: true
Size: 656 Bytes
Versions: 9
Compression:
Stored size: 656 Bytes
Contents
module SnowmanIO module API class Info < Grape::API get "info0" do { unpacked: SnowmanIO.unpacked? } end get "info" do authenticate! { base_url: Setting.get(SnowmanIO::BASE_URL_KEY), version: SnowmanIO::VERSION, force_ssl: Setting.force_ssl?, production: (ENV["DEV_MODE"].to_i != 1) } end params do requires :force_ssl, type: Boolean end post "force_ssl" do authenticate! Setting.set_force_ssl(permitted_params[:force_ssl]) {force_ssl: Setting.force_ssl?} end end end end
Version data entries
9 entries across 9 versions & 1 rubygems