Skip to content

Get method with ? to receive parameter #1549

Answered by dileepgopal
dileepgopal asked this question in Q&A
Discussion options

You must be logged in to vote

I found the solution as defined the controller get decorator as @get("/method") and accessed the query param in the method as req.query.q
If any other better solution please suggest

Replies: 1 comment 3 replies

Comment options

You must be logged in to vote
3 replies
@Romakita
Comment options

@dileepgopal
Comment options

@Romakita
Comment options

Answer selected by Romakita
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
2 participants