Closed OndrejSpanel closed 4 years ago
Hi @OndrejSpanel ! It is already possible, you should use.
Spark.path("/path", ()->{
Spark.get("",(req, resp) -> "" );
Spark.post("",(req, resp) -> "" );
Spark.put("",(req, resp) -> "" );
Spark.patch("",(req, resp) -> "" );
});
I hope help you. Please, close the issue.
Thanks.
Currently when serving multiple verbs (methods) on the same path, one writes (I use Scala syntax, hopefully it is readable for Java folks as well):
Akka Http allows me to write:
I suggest adding something like: