Replies: 1 comment 1 reply
-
You will not be able to handle Post request with jp.SetRoute as it currently ignores the arguments pass to it (https://raw.githubusercontent.com/justpy-org/justpy/master/justpy/routing.py). I personally, don't use deocrators for routes. I would use app.add_route(path, func, methods=["GET"]) as documented here (Kludex/starlette#675 (comment)). I would convert the jpfunc (myFunc_POST in this case) to a starlette-response-returning function first
P.S. |
Beta Was this translation helpful? Give feedback.
1 reply
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
Uh oh!
There was an error while loading. Please reload this page.
-
Hey there beautiful people!
Firstly, I would like to say that I'm very grateful for being able to use JustPy to build my apps. Thank you, I really appreciate all your work here!
About handling POST requests, I have not found it on your docs. I've read Starlette's docs and found a way as follows in the image:
Beta Was this translation helpful? Give feedback.
All reactions