In Slim is it possible to get the current route within middleware?
class Auth extends \\Slim\\Middleware{ public function call(){ $currentRoute = $thi
You should use app->request()->getPathInfo() instead of app->getRoute().
class Auth extends \Slim\Middleware{ public function call(){ $currentRoute = $this->app->request()->getPathInfo(); } }