Fixed url prefix in angular code to use the rest api