how to switch the api endpoint in react app code example Example: command to start api on react npm run api