Separating out a /serve URL from a /resource URL that just gives JSON