Fixed routes and cors issues