Sha256: af6a4d938980bf372fda95f528484e223b0326bef4c6dd2a29666296854e3eb5
Contents?: true
Size: 380 Bytes
Versions: 21
Compression:
Stored size: 380 Bytes
Contents
require 'assette/server' module Assette class Middleware def initialize(app, *args) @app = app end def call(env) if env['PATH_INFO'] == '/' return @app.call(env) end assette_resp = Assette::Server.call(env) if assette_resp[0] == 200 assette_resp else @app.call(env) end end end end
Version data entries
21 entries across 21 versions & 1 rubygems