How to match on multiple methods?

You can use the | operator in a pattern match:

case (GET() | POST()) -> Path() =>
  ...

You can always check the Scala docs for more help.


If you want to handle all possible methods, just don't use any extractors:

case method -> Path() =>
  ...