mirror of
https://github.com/coderaiser/cloudcmd.git
synced 2026-07-18 00:47:01 +00:00
fix(config) json -> jonny
This commit is contained in:
parent
b28e45af25
commit
ba3b80e834
1 changed files with 3 additions and 3 deletions
|
|
@ -20,7 +20,7 @@
|
|||
tryCatch = require('try-catch'),
|
||||
pipe = require('pipe-io'),
|
||||
ponse = require('ponse'),
|
||||
json = require('jonny'),
|
||||
jonny = require('jonny'),
|
||||
|
||||
apiURL = CloudFunc.apiURL,
|
||||
|
||||
|
|
@ -124,7 +124,7 @@
|
|||
}
|
||||
|
||||
function get(req, res) {
|
||||
var data = json.stringify(config);
|
||||
var data = jonny.stringify(config);
|
||||
|
||||
ponse.send(data, {
|
||||
name : 'config.json',
|
||||
|
|
@ -144,7 +144,7 @@
|
|||
|
||||
pipe.getBody(req, function(error, body) {
|
||||
var data = '',
|
||||
json = json.parse(body) || {};
|
||||
json = jonny.parse(body) || {};
|
||||
|
||||
if (error)
|
||||
callback(error);
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue