Adds a redirect endpoint