I needed to change the directory name that holds the flask api because auth0 uses api and we had a rewrite that routed anything with '/api' to our flask REST API.
I changed the name of the 'api' directory that holds the flask application to flask_api since we need a directory in the app for nextjs to avoid confusion.
I updated the read me to document the changes.
I changed the routes in flask_api/index.py from /api to /service
I changed the script that stars the flask service from api to flask_ai so flask knows where to find out index.py
I needed to change the directory name that holds the flask api because auth0 uses api and we had a rewrite that routed anything with '/api' to our flask REST API.
I changed the name of the 'api' directory that holds the flask application to
flask_api
since we need a directory in theapp
for nextjs to avoid confusion.I updated the read me to document the changes.
I changed the routes in
flask_api/index.py
from/api
to/service
I changed the script that stars the flask service from api to flask_ai so flask knows where to find out index.py