pip install -r requirements.txtflask run- 2 command in file app.py are 2 example: route and api
- Homepage -
index.htmlintemplatesfolder: localhost:5000 - Service Tinh tong 2 so x va y:
- Use command:
curl -X POST http://localhost:5000/sum -H 'Content-Type: application/json' -d '{"x": 1,"y": 2}' - Use postman:
- Use command: