Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Multiple Zuul routes to one service

Most of the examples that I see are one route definition to one service.

so this sort of thing:

zuul:
  routes:
    myserver:
      path: /mypath/**

Lets say that I want to route several routes to one service so in effect it would be like this:

zuul:
  routes:
    myserver:
      path: /mypath/**, /anotherpath/**

This isn't allowed in the configuration file and neither are you allowed to have the same route name twice. Is there any real way to do this?

like image 870
EvilJinious1 Avatar asked Feb 22 '15 19:02

EvilJinious1


1 Answers

It may be possible with something like this, but I've not tried it

zuul:
  routes:
    myserver_mypath:
      path: /mypath/**
      serviceId: myserver
    myserver_another_path:
      path: /anotherpath/**
      serviceId: myserver
like image 145
spencergibb Avatar answered Sep 18 '22 13:09

spencergibb