Added 'api_path' to settings, it fixes URLs if you don't have API on root.