mirror of
https://github.com/coderaiser/cloudcmd.git
synced 2026-01-23 18:55:26 +00:00
feature(main) rm
This commit is contained in:
parent
cd296f84be
commit
25d5bbb35f
2 changed files with 1 additions and 46 deletions
|
|
@ -25,7 +25,7 @@
|
|||
* @param callback
|
||||
*/
|
||||
|
||||
exports.auth = function(code, callback){
|
||||
module.exports = function(code, callback){
|
||||
code = code.replace('code=', '');
|
||||
|
||||
Util.log(code);
|
||||
|
|
|
|||
|
|
@ -1,45 +0,0 @@
|
|||
(function() {
|
||||
'use strict';
|
||||
|
||||
/* Global var accessible from any loaded module */
|
||||
global.cloudcmd = {};
|
||||
|
||||
var Util,
|
||||
|
||||
SLASH,
|
||||
CloudFunc, path,
|
||||
|
||||
Config = {
|
||||
server : true,
|
||||
socket : true,
|
||||
port : 80
|
||||
};
|
||||
|
||||
path = require('path'),
|
||||
|
||||
/* Constants */
|
||||
exports.SLASH = SLASH = '/',
|
||||
|
||||
/* we can not use librequare here */
|
||||
Util = require('../util'),
|
||||
|
||||
/* base configuration */
|
||||
exports.config = Config,
|
||||
|
||||
|
||||
/*
|
||||
* Any of loaded below modules could work with global var so
|
||||
* it should be initialized first. Becouse of almost any of
|
||||
* moudles do not depends on each other all needed information
|
||||
* for all modules is initialized hear.
|
||||
*/
|
||||
global.cloudcmd.main = exports;
|
||||
|
||||
/* Additional Modules */
|
||||
CloudFunc = require('../cloudfunc'),
|
||||
exports.auth = require('./auth').auth,
|
||||
|
||||
/* second initializing after all modules load, so global var is *
|
||||
* totally filled of all information that should know all modules */
|
||||
global.cloudcmd.main = exports;
|
||||
})();
|
||||
Loading…
Add table
Add a link
Reference in a new issue