Sha256: f85de9342fa0be36ef1975eb7e4f0f419099068b9b799d27a8bf8e9a1c555412

Contents?: true

Size: 271 Bytes

Versions: 1

Compression:

Stored size: 271 Bytes

Contents

module Micropub::Server::Rails
  class Middleware
    def initialize(app)
      @app = app
    end

    def call(env)
      if env["PATH_INFO"] == "/micropub"
        [200, { "Content-Type" => "text/plain; charset=utf-8" }, ["I am micropub"]]
      end
    end
  end
end

Version data entries

1 entries across 1 versions & 1 rubygems

Version Path
micropub-server-rails-0.1.0 lib/micropub/server/rails/middleware.rb