Use path parameters in treaty #879
abaenaDSET
started this conversation in
Show and tell
Replies: 0 comments
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
Server
src/index.ts
"Client"
tests/index.test.ts
I haven't seen anywhere how to use
treaty
(v2) with path parameters. And I was stuck for some time since I discovered that I needed to call it as a function passing the parameters inside an object and then call the .get() / .post({body: {}}) ...I leave this here for the people like me that don't get it how the new client is used :)
Beta Was this translation helpful? Give feedback.
All reactions