Calle Engene
Calle Engene

Reputation: 886

Can I route request based on operation?

I have an endpoint that accepts two different operations, GET and DELETE. Can I route requests to the same endpoint to different services based on operation in my dispatch.yaml?

This is how I would like to do in my dispatch.yaml:

dispatch:

  - url: "*/customer/example/uri/"
    operation:GET
    service: aservice

  - url: "*/customer/example/uri/"
    operation:DELETE
    service: anotherservice

Upvotes: 0

Views: 52

Answers (1)

Craig
Craig

Reputation: 129

No, dispatch.yaml can only route based on url.

Upvotes: 1

Related Questions