A FAR Superior solution than a UPS or Inverter, would be to run the Router on a 12 Volt rechargable ( Sealed lead acid) battery...
Lower Cost + More efficient ( the Router will run longer on the battery charge). You will need to establish a simple charger mechanism.