Skip to content

Commit 5ac1231

Browse files
author
Michael Wunderlich
committed
fix demo route and controller
1 parent 3145dea commit 5ac1231

File tree

2 files changed

+3
-3
lines changed

2 files changed

+3
-3
lines changed

public/app/demo-controller.js

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -48,7 +48,7 @@ function DemoController($scope, $http, $location, SessionCollection, UserCollect
4848
console.log(result);
4949
session = result;
5050
ddbOutput += "Creating tic-tac-toe game...<br/>";
51-
return GameCollection.createGame(session.id, "tic-tac-toe", "TICTACTOE");
51+
return GameCollection.createGame(session.id, "tic-tac-toe", "TicTacToe");
5252
})
5353
.then(function(result) {
5454
console.log(result);
@@ -59,7 +59,7 @@ function DemoController($scope, $http, $location, SessionCollection, UserCollect
5959
.then(function(result) {
6060
console.log(result);
6161
// Avoid NPE in service
62-
return GameCollection.setField(session.id, game.id, "rules", "TICTACTOE");
62+
return GameCollection.setField(session.id, game.id, "rules", "TicTacToe");
6363
})
6464
.then(function(result) {
6565
console.log(result);

public/app/routes.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@ module.config(function($routeProvider) {
55
templateUrl : "main.html",
66
controller : "MainController"
77
})
8-
.when("/demo", {
8+
.when("/sql", {
99
templateUrl: "demo.html",
1010
controller: "DemoController"
1111
})

0 commit comments

Comments
 (0)