apostrophe cms - Calling afterSave in custom module -
i stuck on seems pretty straight-forward task: calling aftersave method in custom module inherits apostrophe-pieces. objective make xhr call time custom content type created or updated. i've tried putting call in /lib/modules/<my-module>/index.js (where think go) , /lib/modules/<my-module>/lib/api.js without luck. in advance guidance on this. you want hook aftersave module's construct method, commented on gist https://gist.github.com/nodots/b41e14b4ccffb35e66fbeb84b7dd77bf