APCSP-RAGS / awsRAGS_flask

0 stars 0 forks source link

Backend Work - Advik + Srijan #2

Closed advikg closed 1 year ago

advikg commented 1 year ago
advikg commented 1 year ago

Create method is not working, not being called even though POST request should be right? Bluprint: joke_api = Blueprint('joke_api', __name__, url_prefix='/api/jokes') App resource: api.add_resource(_Create, '/create') Requesting the url(on local): http://localhost:8069/api/jokes/create

The method itself is not being called, don't know why? Might have something to do with how routes are defined, maybe check other code to see how it's formatted with a post request.

advikg commented 1 year ago

UPDATE: It only works when running main.py, not through the docker container.