I'm trying to use an existing (and working) API Gateway REST API with Amplify. From what I read, all that is needed is adding an API directive to Amplify.configure(). So, I tried the following in my _app.js file:
import awsconfig from '../src/aws-exports';
Amplify.configure(
{
...awsconfig, ssr: true,
API: {
endpoints: [
{
name: "DanzanRyuAPI",
endpoint: "https://ufr7cpns3i.execute-api.us-west-1.amazonaws.com/test",
}
]
}
}
);
Unfortunately, I get the following error: error Error: API DanzanRyuAPI does not exist
What am I doing wrong?
TIA,
-T