add requirements to routing

Used to much more than one url with a controller method, need this for CORS ;)

cc @DeepDiver1975 @bartv2 @tanghus @MorrisJobke