logger->warning('No valid endpoint found for: ' . $request->getUri()->getPath()); return $c['response']->withJson(array('error' => 'No valid endpoint found!'), 404); }; } }