Sha256: cf89fb7224ab854d44e44e2feed6d689da2ba53468f9c71b7fb6ba48f68552a6

Contents?: true

Size: 297 Bytes

Versions: 2

Compression:

Stored size: 297 Bytes

Contents

module Stylish
  module ServerInfo
    extend ActiveSupport::Concern

    included do
      get "/server/info" do
        {
          configuration: Stylish.config.public,
          sprockets: {
            paths: Stylish.sprockets.paths
          }
        }.to_json
      end
    end
  end
end

Version data entries

2 entries across 2 versions & 1 rubygems

Version Path
stylish-0.3.1 lib/stylish/api/server_info.rb
stylish-0.3.0 lib/stylish/api/server_info.rb