I created /redirect method with GET and I would like to pass URL with parameters to it like such:
/redirect/https://example.com?param=1
and then, strip parameters and respond with a redirect to:
https://example.com
That's a quite unusual situation as I see that most API requests relay on URL parameters and I intend to do the opposite. I'm conflicted if I should use Mock or Lambda.
Could someone point me in the right direction?
Thank you.