diff options
| author | mo khan <mo@mokhan.ca> | 2025-03-06 12:06:21 -0700 |
|---|---|---|
| committer | mo khan <mo@mokhan.ca> | 2025-03-06 12:06:21 -0700 |
| commit | b860827787d5663472b822e58fa06d2adc9bee03 (patch) | |
| tree | c2760343eedd7481603814b89b1b33e34cc80095 /lib/authx | |
| parent | bad76558aca0719db95f5572c7847fd971051186 (diff) | |
refactor: connect twirp client/server components to rack
Diffstat (limited to 'lib/authx')
| -rw-r--r-- | lib/authx/rpc.rb | 1 | ||||
| -rw-r--r-- | lib/authx/rpc/ability_handler.rb | 15 |
2 files changed, 16 insertions, 0 deletions
diff --git a/lib/authx/rpc.rb b/lib/authx/rpc.rb index 78edbc46..a9963c67 100644 --- a/lib/authx/rpc.rb +++ b/lib/authx/rpc.rb @@ -2,3 +2,4 @@ require "authx/rpc/ability_pb" require "authx/rpc/ability_twirp" +require "authx/rpc/ability_handler" diff --git a/lib/authx/rpc/ability_handler.rb b/lib/authx/rpc/ability_handler.rb new file mode 100644 index 00000000..bc1444ca --- /dev/null +++ b/lib/authx/rpc/ability_handler.rb @@ -0,0 +1,15 @@ +# frozen_string_literal: true + +module Authx + module Rpc + class AbilityHandler + def allowed(request, env) + puts [request, env].inspect + + { + result: true + } + end + end + end +end |
