Update plugin route config to use prototype object