Default value useGetEndpoint
We often need to handle the case of endpoint returning a value.
Currently, the default return value in this case is undefined
.
However, in some cases, it would be nice to be able to choose something else (for istance []
when we expect an array).