RestRoute: fix restful mode