Integrating crud-mongoose into API