2014-03-14 13:38:27 -07:00
|
|
|
'use strict';
|
|
|
|
|
|
|
|
//Setting up route
|
|
|
|
angular
|
|
|
|
.module('cosign')
|
2014-03-19 09:17:18 -07:00
|
|
|
.config(function($routeProvider) {
|
2014-03-18 09:22:20 -07:00
|
|
|
|
2014-03-19 09:17:18 -07:00
|
|
|
$routeProvider
|
2014-03-27 12:31:42 -07:00
|
|
|
.when('/', {
|
|
|
|
templateUrl: 'signin.html'
|
|
|
|
})
|
2014-03-19 09:17:18 -07:00
|
|
|
.when('/signin', {
|
|
|
|
templateUrl: 'signin.html'
|
2014-03-18 09:22:20 -07:00
|
|
|
})
|
2014-03-19 09:17:18 -07:00
|
|
|
.when('/home', {
|
|
|
|
templateUrl: 'home.html'
|
2014-03-27 12:31:42 -07:00
|
|
|
})
|
|
|
|
.when('/join/:id', {
|
|
|
|
templateUrl: 'join.html'
|
|
|
|
})
|
2014-03-27 12:43:51 -07:00
|
|
|
.when('/transactions', {
|
2014-03-26 05:18:42 -07:00
|
|
|
templateUrl: 'transactions.html'
|
2014-03-27 12:43:51 -07:00
|
|
|
})
|
|
|
|
.when('/send', {
|
2014-03-26 05:18:42 -07:00
|
|
|
templateUrl: 'send.html'
|
2014-03-27 12:43:51 -07:00
|
|
|
})
|
|
|
|
.when('/backup', {
|
2014-03-26 05:18:42 -07:00
|
|
|
templateUrl: 'backup.html'
|
2014-03-27 12:43:51 -07:00
|
|
|
})
|
2014-03-27 12:31:42 -07:00
|
|
|
.otherwise({
|
|
|
|
templateUrl: '404.html'
|
2014-03-14 13:38:27 -07:00
|
|
|
});
|
|
|
|
});
|
|
|
|
|
|
|
|
//Setting HTML5 Location Mode
|
|
|
|
angular
|
2014-03-18 09:22:20 -07:00
|
|
|
.module('cosign')
|
2014-03-14 13:38:27 -07:00
|
|
|
.config(function($locationProvider) {
|
2014-03-19 09:17:18 -07:00
|
|
|
$locationProvider
|
|
|
|
.html5Mode(false);
|
|
|
|
//.hashPrefix('!');
|
2014-03-14 13:38:27 -07:00
|
|
|
});
|