change to io/Rest from middleware/Rest.