correct mismatch between resource type and id in restful route