How to set required POST parameters for routes
I did something like this before ( take a look at helper link ),it  not required to tell router about type

just post your data and in your controller  get them with 

$value = \Drupal::request()-&gt;request-&gt;get('your_posted_variable'); 


Also you can get all $_POST variables with 

  \Drupal::request()-&gt;request-&gt;all(); // equal to $_POST