Liberator.Resource.exists-question-mark

You're seeing just the callback exists-question-mark, go back to Liberator.Resource module for more information.
Link to this callback

exists?(arg1)

View Source (since 1.0)

Specs

exists?(Plug.Conn.t()) :: true | false

Check if the requested entity exists.

This is a great place to actually fetch the requested resource, then return it as a map so it can be merged into the :assigns map of the request.

Returning false here will cause the plug to return a 404 Not Found response.