rest works but routing has problem