Adapt MonitoringApp with API under Mongoose