Separated api url generation to a different namespace