WorkJS router middleware