mirror of
https://github.com/mistergibson/gxg-server.git
synced 2026-08-15 02:15:59 -07:00
odd err
This commit is contained in:
parent
c273b7737a
commit
1f5c7ad8b9
1 changed files with 1 additions and 1 deletions
|
|
@ -449,7 +449,7 @@ module GxG
|
||||||
::File.expand_path("#{::GxG::SYSTEM.gxg_root()}/#{self.vfs_root()}")
|
::File.expand_path("#{::GxG::SYSTEM.gxg_root()}/#{self.vfs_root()}")
|
||||||
end
|
end
|
||||||
# ### API Support
|
# ### API Support
|
||||||
def publish_route(the_method=:get, path, options={}, &block)
|
def publish_route(the_method=:get, path="", options={}, &block)
|
||||||
if ::GxG::Services::service_available?(:www)
|
if ::GxG::Services::service_available?(:www)
|
||||||
::GxG::SERVICES[:www].call_event({:publish_route => {:http_method => the_method, :path => path, :options => options, :code => block}}, ::GxG::DB[:administrator])
|
::GxG::SERVICES[:www].call_event({:publish_route => {:http_method => the_method, :path => path, :options => options, :code => block}}, ::GxG::DB[:administrator])
|
||||||
end
|
end
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue