changed api root to use relative urls