This commit is contained in:
G. Gibson 2025-03-30 11:18:31 -07:00
parent c273b7737a
commit 1f5c7ad8b9

View file

@ -449,7 +449,7 @@ module GxG
::File.expand_path("#{::GxG::SYSTEM.gxg_root()}/#{self.vfs_root()}")
end
# ### 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)
::GxG::SERVICES[:www].call_event({:publish_route => {:http_method => the_method, :path => path, :options => options, :code => block}}, ::GxG::DB[:administrator])
end