title: Spring Cloud Gateway as a gateway as well as web application
body: <p>I have a spring cloud gateway application and what I want is like if there are two routes then on one route it should redirect to some external application but for other route it should forward the request to same app with a particular url.</p>
  <pre><code>-id: my_local_route
   predicates:
     - Path=&quot;/services/local&quot;
   uri: &quot;/mylocal/services/local&quot; //can we do something like that
  
  </code></pre>
  <p>Please note I want to create my rest services in same app as in spring cloud gateway. I understand it is not correct approach but for my knowledge I wanted to know whether it is possible or not.</p>