Turns out express-resource was required in this file after all.