Attaching the route filter in the routes file