Moving the api.js and bot.js to /rtcbot/bot/ to be shared between

/borwser and /android

R=andresp@webrtc.org

Review URL: https://webrtc-codereview.appspot.com/25369004

git-svn-id: http://webrtc.googlecode.com/svn/trunk@7062 4adac7df-926f-26a2-2b94-8c16560cd09d
This commit is contained in:
houssainy@google.com 2014-09-04 13:44:47 +00:00
parent 262e676a08
commit 38ef664418
4 changed files with 5 additions and 5 deletions

View File

@ -41,11 +41,11 @@ BotManager.prototype = {
this.app_ = new Express(); this.app_ = new Express();
this.app_.use('/bot/browser/api.js', this.app_.use('/bot/api.js',
this.serveBrowserifyFile_.bind(this, this.serveBrowserifyFile_.bind(this,
__dirname + '/bot/browser/api.js')); __dirname + '/bot/api.js'));
this.app_.use('/bot/browser/', Express.static(__dirname + '/bot/browser')); this.app_.use('/bot/', Express.static(__dirname + '/bot'));
this.server_ = http.createServer(this.app_); this.server_ = http.createServer(this.app_);
@ -97,7 +97,7 @@ Bot.prototype = {
} }
} }
// BrowserBot spawns a process to open "http://localhost:8080/bot/browser/". // BrowserBot spawns a process to open "http://localhost:8080/bot/".
// //
// That page once loaded, connects to the websocket server run by BotManager // That page once loaded, connects to the websocket server run by BotManager
// and exposes the bot api. // and exposes the bot api.
@ -109,7 +109,7 @@ BrowserBot = function (name, callback) {
BrowserBot.prototype = { BrowserBot.prototype = {
spawnBotProcess_: function () { spawnBotProcess_: function () {
this.log('Spawning browser'); this.log('Spawning browser');
child.exec('google-chrome "http://localhost:8080/bot/browser/"'); child.exec('google-chrome "http://localhost:8080/bot/"');
}, },
__proto__: Bot.prototype __proto__: Bot.prototype