Module: JSONRPC::MapperExtension Private
- Defined in:
- lib/jsonrpc/railtie/mapper_extension.rb
Overview
This module is part of a private API. You should avoid using this module if possible, as it may be removed or be changed in the future.
Extension module for ActionDispatch::Routing::Mapper
Instance Method Summary collapse
-
#jsonrpc(path = '/') ⇒ void
private
Define JSON-RPC routes with a DSL.
Instance Method Details
#jsonrpc(path = '/') ⇒ void
This method is part of a private API. You should avoid using this method if possible, as it may be removed or be changed in the future.
This method returns an undefined value.
Define JSON-RPC routes with a DSL
29 30 31 32 |
# File 'lib/jsonrpc/railtie/mapper_extension.rb', line 29 def jsonrpc(path = '/', &) dsl = JSONRPC::RoutesDsl.new(self, path) dsl.instance_eval(&) end |