UNPKG

@hicoder/express-core

Version:

Restful API exposure middleware for Express and Mongoose based framework. Provide Rest API automatically based on Mongoose schema. It can also work with angular-core to develop end to end MEAN stack web applications.

15 lines (12 loc) 502 B
const meanRestExpressRouter = require('./lib/rest_router'); const restController = require('./lib/rest_controller'); const mddsCoreModuleDef = require('./model/model.index'); const mddsCoreHistoryDef = require('./model/model.history'); module.exports = { //function. input is schema definition of the module, return a express router. RestRouter: meanRestExpressRouter, //An object. Expose the ModelExecute() function. restController, mddsCoreModuleDef, mddsCoreHistoryDef, };