Sha256: f7b08fc1a36b3f62f377e80887680e171acd3299534e713ee55f2a53deb345c1
Contents?: true
Size: 449 Bytes
Versions: 3
Compression:
Stored size: 449 Bytes
Contents
# frozen_string_literal: true require 'mkit/exceptions' module MKIt class Server < Sinatra::Base set :default_content_type, :json set :dump_errors, true set :show_exceptions, false set :raise_errors, false error MKIt::BaseException do |e| MKItLogger.debug e error e.error_code, e.message end error do |e| MKItLogger.debug e error 500, "Internal server error: #{e.message}" end end end
Version data entries
3 entries across 3 versions & 1 rubygems
Version | Path |
---|---|
mkit-0.5.0 | lib/mkit/app/mkit_server.rb |
mkit-0.4.3 | lib/mkit/app/mkit_server.rb |
mkit-0.4.2 | lib/mkit/app/mkit_server.rb |