Refer to $app as  $this inside a router