Sha256: 84c5a88e81b7c35e1d2d90724ef42ca5fbc7c9c1217fec9c95bfac5d74a1d90d
Contents?: true
Size: 527 Bytes
Versions: 1
Compression:
Stored size: 527 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
1 entries across 1 versions & 1 rubygems
Version | Path |
---|---|
rack-blogengine-0.0.3 | lib/rack/blogengine/application.rb |