Skip to content

Commit c264878

Browse files
committed
chore: add function delegation
1 parent e460663 commit c264878

File tree

1 file changed

+5
-0
lines changed

1 file changed

+5
-0
lines changed

apps/authorizer/lib/authorizer.ex

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2,4 +2,9 @@ defmodule Authorizer do
22
@moduledoc """
33
Application to deal with request's to authorization server.
44
"""
5+
6+
alias Authorizer.Rules.Commands.AdminAccess
7+
8+
@doc "Delegates to #{AdminAccess}.execute/1"
9+
defdelegate authorize_admin(conn), to: AdminAccess, as: :execute
510
end

0 commit comments

Comments
 (0)