I would recommend you to do that, maybe a different service that aggregates and then returns it to the Gateway is a better option. However, if you really wanna go for that you can implement a ZuulFilter to achieve the behavior that you are looking for.
Anyone know of a good github example that has a UI Service and Zuul Gateway separated out?
Can't figure the best/clean way to get my static resources loaded on the UI. Without changing the relative path for resources, which breaks the application when not used with Zuul - which doesnt seem correct?
localhost:5555/ui/myapp/index.html would load but then say look for localhost:5555/myapp/js/app.js (no ui before context path) ... I can change that and hard code where to find my resources it but that doesn't seem the best way. :)