Sha256: ec877e01b30b4f0d0ce08c9786efddf8a3418f820e99cda4077de11041ea48c4
Contents?: true
Size: 671 Bytes
Versions: 9
Compression:
Stored size: 671 Bytes
Contents
module Spider class HomeController < Controller include StaticContent route 'spider/public', Spider.controller, :prepend => 'public/' # route 'spider', Spider.controller def self.route_app(app) #app_path = app.name.gsub('::', '/') app_path = app.route_url Spider::Logger.debug("ROUTING #{app_path} TO #{app.controller}") route(app_path, app.controller, :ignore_case => true) end def self.pub_path Spider.paths[:root]+'/public' end def self.pub_url HTTPMixin.reverse_proxy_mapping('/public') end end end
Version data entries
9 entries across 9 versions & 1 rubygems