copay/js/routes.js

49 lines
980 B
JavaScript
Raw Normal View History

2014-04-07 20:54:38 -07:00
'use strict';
//Setting up route
angular
.module('copay')
.config(function($routeProvider) {
$routeProvider
.when('/', {
templateUrl: 'signin.html'
})
.when('/signin', {
templateUrl: 'signin.html'
})
2014-04-16 13:07:14 -07:00
.when('/setup', {
templateUrl: 'setup.html'
})
2014-04-07 20:54:38 -07:00
.when('/home', {
templateUrl: 'home.html'
})
.when('/join/:id', {
templateUrl: 'join.html'
})
.when('/peer', {
templateUrl: 'peer.html'
})
.when('/transactions', {
templateUrl: 'transactions.html'
})
.when('/send', {
templateUrl: 'send.html'
})
.when('/backup', {
templateUrl: 'backup.html'
})
.otherwise({
templateUrl: '404.html'
});
});
//Setting HTML5 Location Mode
angular
.module('copay')
.config(function($locationProvider) {
$locationProvider
.html5Mode(false);
//.hashPrefix('!');
});