copay/js/config.js

46 lines
912 B
JavaScript
Raw Normal View History

2014-03-14 13:38:27 -07:00
'use strict';
//Setting up route
angular
.module('copay')
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
.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'
})
.when('/join/:id', {
templateUrl: 'join.html'
})
.when('/peer', {
templateUrl: 'peer.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
})
.otherwise({
templateUrl: '404.html'
2014-03-14 13:38:27 -07:00
});
});
//Setting HTML5 Location Mode
angular
.module('copay')
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
});