How to do a simple redirect?

I don't understand how to perform a redirect from the server.

In an API endpoint, I want to redirect to a specific page of my frontend, how do I achieve this?

2 replies