Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Pass parameters via POST (or GET) #9

Open
jawache opened this issue Jan 8, 2019 · 0 comments
Open

Pass parameters via POST (or GET) #9

jawache opened this issue Jan 8, 2019 · 0 comments
Assignees

Comments

@jawache
Copy link
Collaborator

jawache commented Jan 8, 2019

I think this works fine in development but won't work in production (at least not with stability), you can't be guaranteed that INVOICE will have the data you need (e.g. if more than one server is running your code the other server INVOICE will be blank) also what will you do if more than one user is using the app.

I would change this so the client app, web app, stores the settings and sends them all to this endpoint via a GET request and query params e.g. invoice?a=1,b=2 etc...

return render_template("invoice.html", result=INVOICE)

@samedhaa samedhaa self-assigned this Jan 8, 2019
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants