mongoose-express-restfulhelper:ExpressJS 提供的 Mongoose Restful webAPI

时间:2024-06-27 16:33:50
【文件属性】:

文件名称:mongoose-express-restfulhelper:ExpressJS 提供的 Mongoose Restful webAPI

文件大小:9KB

文件格式:ZIP

更新时间:2024-06-27 16:33:50

JavaScript

猫鼬-express-restful var express = require('express'); var bodyParser = require('body-parser'); var app = express(); app.use(bodyParser.json()); app.use(bodyParser.urlencoded({ extended: false })); //======model var Person = require('../model').Person; var msUser = require('../model').msUser; var restfulHelper = require('../index'); var router =express.Router(); console.log(restfulHelper); app.use


【文件预览】:
mongoose-express-restfulhelper-master
----.gitignore(608B)
----package.json(570B)
----index.js(92B)
----restStyle()
--------crud.js(430B)
--------auth.js(3KB)
----README.md(707B)
----lib()
--------requestProxy.js(3KB)
--------baseProxy.js(1KB)
--------restfulhelper.js(176B)
----test()
--------app.js(667B)
--------model()
--------requestProxy.test.js(475B)

网友评论