jfyne / live

Live views and components for golang
https://discord.gg/TuMNaXJMUG
MIT License
655 stars 27 forks source link

How to read URL query string params in HandleMount? #60

Closed dmarko484 closed 1 year ago

dmarko484 commented 1 year ago

How can I read URL query string value in handleMount func? How can I access http.Request in this context? And thanks for this great project!!

jfyne commented 1 year ago

https://github.com/jfyne/live/blob/master/context.go#L21-L28

You can pass the context into live.Request and you will have the original request.

dmarko484 commented 1 year ago

Thanks, that's exactly I needed ...

jfyne commented 1 year ago

:+1: