Sha256: 335a9d932bb90dfcd2854dbf0b88eaf9cb81fc2184e486dbdf2c09552512c699

Contents?: true

Size: 626 Bytes

Versions: 2

Compression:

Stored size: 626 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"
  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

2 entries across 2 versions & 1 rubygems

Version Path
rails_twirp-0.8.0 test/dummy/config/twirp/routes.rb
rails_twirp-0.7.2 test/dummy/config/twirp/routes.rb