Sha256: 80fe7384c2cb9a3d39864ce53e6f03d85c4f2777e2ca8a0e2563e5880371df4c
Contents?: true
Size: 581 Bytes
Versions: 14
Compression:
Stored size: 581 Bytes
Contents
module Rack module Blogengine class Application # Call Method for run this method as Rack Middleware. # @param env Environment contains information such as path, headers etc... # @return [Array] response Array def self.call(env) # Router for map docs to routes route = ApplicationRouter.map_route(env, $targetfolder) if route return route["response"] else return [404, {"Content-Type" => "text/html; charset=UTF-8"}, ["Page not found"]] end end end end end
Version data entries
14 entries across 14 versions & 1 rubygems