Fix restful routes