That really depends on the paradigm you use. Also, if you don't want to have the route limited to specific methods but rather have that handled in e.g. a RestController, you simply don't set the method on the route. You really don't get limited by this.