When requesting endpoint on API version that does not exists, app crashes. It would be good to throw an exception instead.
API version is specified in request Accept header and is set to (application/vnd.myvendorname.v2+json)
Exception thrown and stack trace
[2014-12-07 15:08:58] production.ERROR: exception 'Symfony\Component\Debug\Exception\FatalErrorException' with message 'Call to a member function match() on a non-object' in /Applications/MAMP/htdocs/rkapi/vendor/dingo/api/src/Routing/Router.php:333
Stack trace:
#0 [internal function]: Illuminate\Exception\Handler->handleShutdown()
#1 {main} [] []
I will dig into this later and try to fix it. If you happen to resolve this before me, drop a line here please.
Have a nice day! :)