Method: Fluent::PluginHelper::HttpServer::Router#mount
- Defined in:
- lib/fluent/plugin_helper/http_server/router.rb
#mount(method, path, app) ⇒ Object
37 38 39 40 41 42 43 |
# File 'lib/fluent/plugin_helper/http_server/router.rb', line 37 def mount(method, path, app) if @router[method].include?(path) raise "#{path} is already mounted" end @router[method][path] = app end |