use escape method from $app in the closure

the closure for $app->get got the $app itself passed, but it was never used, so either remove the use($app) or use $app, i decided for using $app and its escape method