leancloud-log-middleware
Middleware of creating Leancloud object, by configuring LOG_SYSTEM_APP_ID, LOG_SYSTEM_APP_KEY and LOG_SYSTEM_CLASS
Install
$ npm install --save leancloud-log-middleware
Initializing
This package will initialize leancloud (AV.init) in npm module. (Or using AV func before AV.init will cause leancloud error.)
// Before runing express server $ npm start
Usage
upload
var express = ;var app = ;var logModule = ; // bodyParser needed to include if req.body is needed ...// app.use(bodyParser.json());// app.use(bodyParser.urlencoded({ extended: false })); app;app ... app;app;