Add routes for viewer.php