Fixing api route