   Options:
 
   * `curator` (required)
+  * `actions` (optional) default: [:new, :create, :show, :edit, :update, :delete]
 
   Extensions:
 


  # Extensions

  def unauthenticated_routes(_mod) do
    quote do
      resources "/registrations", Auth.RegistrationController, only: [:new, :create]
    end
  end

  def authenticated_routes(_mod) do
    quote do
      get "/registrations/edit", Auth.RegistrationController, :edit
      get "/registrations", Auth.RegistrationController, :show
      put "/registrations", Auth.RegistrationController, :update, as: nil
      patch "/registrations", Auth.RegistrationController, :update
      delete "/registrations", Auth.RegistrationController, :delete
    end
  end

  # User Schema / Context

  end

  # Config
  defp actions(mod) do
    mod.config(:actions, [:new, :create, :show, :edit, :update, :delete])
  end

  defp route_quote(:show) do
    quote do
      get "/registrations", Auth.RegistrationController, :show
    end
  end

  defp route_quote(:new) do
    quote do
      get "/registrations/new", Auth.RegistrationController, :new
    end
  end

  defp route_quote(:create) do
    quote do
      post "/registrations", Auth.RegistrationController, :create
    end
  end

  defp route_quote(:edit) do
    quote do
      get "/registrations/edit", Auth.RegistrationController, :edit
    end
  end

  defp route_quote(:update) do
    quote do
      put "/registrations", Auth.RegistrationController, :update, as: nil
      patch "/registrations", Auth.RegistrationController, :update
    end
  end

  defp route_quote(:delete) do
    quote do
      delete "/registrations", Auth.RegistrationController, :delete
    end
  end
end
