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.

21 lines (16 loc) 355 B
const historySchemaDef = require('./model.history'); const schemas = { history: historySchemaDef, }; const authz = { 'module-authz': { LoginUser: { others: 'R', own: 'R' }, Anyone: '' }, }; const DB_CONFIG = { APP_NAME: process.env.APP_NAME, MODULE_NAME: 'MDDSCORE', }; module.exports = { schemas: schemas, authz: authz, DB_CONFIG, };