Join Slack
Powered by
Hey there, how do I get the query part of my endpo...
# help
a
Ayo
01/05/2022, 6:48 PM
Hey there, how do I get the query part of my endpoint url. Is there something part of the event object that allows this?
t
thdxr
01/05/2022, 6:49 PM
If you update to the latest SST there's a web UI that logs every request to your function
thdxr
01/05/2022, 6:49 PM
you can poke around there to see hwo the event is structured
a
Ayo
01/05/2022, 6:52 PM
So does that mean the query is part of the event object?
t
thdxr
01/05/2022, 6:52 PM
yep I did an example for you
thdxr
01/05/2022, 6:53 PM
event.queryStringParameters
a
Ayo
01/05/2022, 6:54 PM
Kk thanks got it
t
thdxr
01/05/2022, 6:54 PM
ah sorry this is 1.0 event format you might be using 2.0
a
Ayo
01/05/2022, 6:55 PM
Nah it’s fine I just got it
3
Views
Open in Slack
Previous
Next