Sha256: aaca269a3dcfa006ecc83c3df193de68ac6239f041bfadbabc8a57e4b9491194

Contents?: true

Size: 677 Bytes

Versions: 7

Compression:

Stored size: 677 Bytes

Contents

require_relative "../../proto/api_twirp"

Rails.application.twirp.routes.draw do
  service RPC::DummyAPI::DummyService do
    rpc "Ping", to: "pings#ping"
    rpc "PingRender", to: "pings#ping_render"
    rpc "PingTemplate", to: "pings#ping_template"
    rpc "ErrorResponse", to: "pings#error_response"
    rpc "RaiseError", to: "pings#raise_error"
    rpc "UncaughtError", to: "pings#uncaught_raise"
    rpc "BeforeError", to: "pings#before_error"
    rpc "RpcNameCheck", to: "dummy#rpc_name_check"
  end

  scope module: :testmod do
    service RPC::DummyAPI::DummyService do
      scope module: "nested" do
        rpc "Nested", to: "other#ping"
      end
    end
  end
end

Version data entries

7 entries across 7 versions & 1 rubygems

Version Path
rails_twirp-0.13.2 test/dummy/config/twirp/routes.rb
rails_twirp-0.13.0 test/dummy/config/twirp/routes.rb
rails_twirp-0.12.0 test/dummy/config/twirp/routes.rb
rails_twirp-0.11.0 test/dummy/config/twirp/routes.rb
rails_twirp-0.10.0 test/dummy/config/twirp/routes.rb
rails_twirp-0.9.1 test/dummy/config/twirp/routes.rb
rails_twirp-0.9.0 test/dummy/config/twirp/routes.rb