feature(main) rm

This commit is contained in:
coderaiser 2014-09-16 04:52:02 -04:00
parent cd296f84be
commit 25d5bbb35f
2 changed files with 1 additions and 46 deletions

View file

@ -25,7 +25,7 @@
* @param callback
*/
exports.auth = function(code, callback){
module.exports = function(code, callback){
code = code.replace('code=', '');
Util.log(code);

View file

@ -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;
})();