Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Allow specifying resource_module separately for each action #1

Open
vincentvanbush opened this issue Jun 6, 2023 · 0 comments · May be fixed by #13
Open

Allow specifying resource_module separately for each action #1

vincentvanbush opened this issue Jun 6, 2023 · 0 comments · May be fixed by #13
Labels
enhancement New feature or request

Comments

@vincentvanbush
Copy link
Contributor

It has crossed my mind that we could think of possibly defining :resource_module option individually on a per-action basis:

  @spec edit(Plug.Conn.t(), map()) :: Plug.Conn.t()
  @resource_module User
  def edit(conn, _param) do
    # ...
  end

or

  @spec edit(Plug.Conn.t(), map()) :: Plug.Conn.t()
  def edit(conn, _param) do
    # ...
  end

  def resource_module(:edit), do: User
@vincentvanbush vincentvanbush added the enhancement New feature or request label Jun 6, 2023
@vincentvanbush vincentvanbush assigned olafbado and unassigned olafbado Feb 29, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request
Projects
None yet
Development

Successfully merging a pull request may close this issue.

2 participants