Exposing REST APIs using a Router URL

Hey there :raised_hand_with_fingers_splayed:

I was trying to hide the functions URL by creating a public URL ( Router ) that will redirect the request to the requested function in the http functions file, but the fetch result was an HTML document with an ok response , is there any way the router can redirect the REST requests? If so then how?

Thanks in advance :blush:
Ahmad

Instead of using router have you tried using SEO redirect from the settings?

I haven’t tried them yet, will do! Thanks again Quentin :blush:

Let me know how it works

@plomteuxquentin SEO redirecting works! :wink: But there’s not way to add dynamic REST requests, for example " www.domain.com/api/getMember?id=xxx "

So I can use this method with functions that don’t accept parameters, but it’s impossible to use it with dynamic http functions that you need to pass them a value(s) in order to work well. :pensive: