"Changed AgnularJs Link

Made the http link use config IP in settings"
This commit is contained in:
perroned 2014-05-27 08:12:12 -07:00
parent 86f9b53e88
commit 4d476cec37
2 changed files with 3 additions and 2 deletions

3
labs/demos/lib/handlers.coffee Normal file → Executable file
View File

@ -2,6 +2,7 @@ xml2js = require 'xml2js'
bbbapi = require './bbbapi'
testapi = require './testapi'
configJson = require './../config.json'
index = (request, response) ->
response.sendfile('./views/index.html')
@ -37,7 +38,7 @@ login = (req, resp) ->
"\nuser_id = " + user_id +
"\nauth_token = " + auth_token
url = "http://192.168.0.203:3000/html5.client?meeting_id=" + meeting_id + "&user_id=" +
url = "#{configJson.settings.IP}:3000/html5.client?meeting_id=" + meeting_id + "&user_id=" +
user_id + "&auth_token=" + auth_token
json =

2
labs/demos/views/index.html Normal file → Executable file
View File

@ -1,7 +1,7 @@
<!doctype html>
<html ng-app="landingPage">
<head>
<script src="https://ajax.googleapis.com/ajax/libs/angularjs/1.3.0-beta.7/angular.min.js"></script>
<script type="text/javascript" src="http://ajax.googleapis.com/ajax/libs/angularjs/1.2.4/angular.min.js"></script>
<script type="text/javascript" src="http://ajax.googleapis.com/ajax/libs/jquery/1.3.2/jquery.min.js"></script>
<script src="../public/js/app.js"></script>
</head>