Moves json related routes to api namespace