api directory returns urls instead of paths