Redirect BaseUrl to Service

Hi,

i have baseurl : http://localhost:2001/tms/xdata
and service /echostring
if I have access to baseurl, how do I automatically redirect to /echostring?

Thanks you

You can add a generic middleware and simply redirect it manually:



if Context.Request.Uri.Path = '/tms/xdata' then
  Context.Request.RawUri := Context.Request.RawUri + '/echostring';
Next(Context);


or respond with a 302 redirect, etc..

Thank you Wagner, It work