creating a rest router