jvrjsanchez / mockAI

https://mock-ai-eight.vercel.app
2 stars 2 forks source link

Fix/flask/basename #15

Closed Tim-Quattrochi closed 5 months ago

Tim-Quattrochi commented 5 months ago

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