If a resource is not found, we're currently calling the policy with nil for the resource value. This means that a lot of times, the policies will have a function branch pattern matching on nil and calling a FallbackController or specific handler.
We should add that as an alternative, similar to the current unauthorised handler.
Since both the new handler and the unauthorised one are plugs, we should also update the README with an example using a MyAppWeb.FallbackController as the handler
If a resource is not found, we're currently calling the policy with
nilfor the resource value. This means that a lot of times, the policies will have a function branch pattern matching onniland calling aFallbackControlleror specific handler.We should add that as an alternative, similar to the current unauthorised handler.
Since both the new handler and the unauthorised one are plugs, we should also update the README with an example using a
MyAppWeb.FallbackControlleras the handler