edit controller api - router