Rewrite url also

Route ''/pathToAction.json" to "/pathToAction" (with accept='application/json')