UNPKG

mh_ms_helper

Version:

Provides the required configuration and connection to Micro services for MH control Central System.

19 lines (17 loc) 581 B
const { Service } = require('feathers-mongoose'); const createModel = require('./models/loggedInUser'); module.exports = function (app) { // options for the model const options = { Model: createModel(app), paginate: app.get('paginate') }; console.log("here we have app, and we can do anythibng"); class loggedInUsers extends Service { async create(data){ console.log("Incoming Data",data); super.create(data); } }; app.use('loggedInUsers', new loggedInUsers(options, app)); };