Routing

convert to routing
the `->getFlashbag()` method was highlighted by PHPStorm, so was worried it was unavailable.