Change Route In APISIX Dashboard

110 Views Asked by At

i want to change incoming route to another route to destination.for example:

incoming --> /api/login/* outgoing --> /api/uathenticate/*

every where i see this config:

enter image description here

1

There are 1 best solutions below

0
KarelHusa On

In the URL Regexp you have correctly the source pattern:

^/api/login/(.*)

Put the target format of the URL into the Template field:

/api/authenticate/$1

That is all what needs to be done to rewrite the URL.