Skip to content

Commit

Permalink
Merge pull request DesertsP#29 from leancloud/leanengine2
Browse files Browse the repository at this point in the history
⬆️ Upgrade leanengine 2.0
  • Loading branch information
jysperm authored Apr 12, 2017
2 parents afecf74 + 549a5fe commit 3d7002d
Show file tree
Hide file tree
Showing 3 changed files with 5 additions and 5 deletions.
4 changes: 2 additions & 2 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -23,7 +23,7 @@ npm install

```
lean login
lean checkout
lean switch
```

启动项目:
Expand All @@ -48,5 +48,5 @@ lean deploy
* [JavaScript 开发指南](https://leancloud.cn/docs/leanstorage_guide-js.html)
* [JavaScript SDK API](https://leancloud.github.io/javascript-sdk/docs/)
* [Node.js SDK API](https://github.com/leancloud/leanengine-node-sdk/blob/master/API.md)
* [命令行工具使用指南](https://leancloud.cn/docs/cloud_code_commandline.html)
* [命令行工具使用指南](https://leancloud.cn/docs/leanengine_cli.html)
* [云引擎常见问题和解答](https://leancloud.cn/docs/leanengine_faq.html)
4 changes: 2 additions & 2 deletions cloud.js
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,6 @@ var AV = require('leanengine');
/**
* 一个简单的云代码方法
*/
AV.Cloud.define('hello', function(request, response) {
response.success('Hello world!');
AV.Cloud.define('hello', function(request) {
return 'Hello world!';
});
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@
"cookie-parser": "^1.3.5",
"ejs": "2.3.1",
"express": "4.12.3",
"leanengine": "^1.2.3"
"leanengine": "^2.0.0"
},
"devDependencies": {
"nodemon": "^1.11.0"
Expand Down

0 comments on commit 3d7002d

Please sign in to comment.