js: add edit route to all controllers