2014-01-06 12:34:25 -08:00
|
|
|
'use strict';
|
|
|
|
|
|
|
|
//Setting up route
|
2014-01-17 06:46:12 -08:00
|
|
|
angular.module('insight').config(['$routeProvider',
|
2014-01-06 12:54:32 -08:00
|
|
|
function($routeProvider) {
|
|
|
|
$routeProvider.
|
2014-01-08 06:05:19 -08:00
|
|
|
when('/block/:blockHash', {
|
|
|
|
templateUrl: 'views/block.html'
|
|
|
|
}).
|
2014-01-20 13:52:28 -08:00
|
|
|
when('/block-index/:blockHeight', {
|
|
|
|
controller: 'BlocksController',
|
|
|
|
template: 'Redirecting...'
|
|
|
|
}).
|
2014-01-09 10:13:26 -08:00
|
|
|
when('/tx/:txId', {
|
|
|
|
templateUrl: 'views/transaction.html'
|
|
|
|
}).
|
2014-01-06 12:54:32 -08:00
|
|
|
when('/', {
|
|
|
|
templateUrl: 'views/index.html'
|
|
|
|
}).
|
2014-01-08 06:56:36 -08:00
|
|
|
when('/blocks', {
|
|
|
|
templateUrl: 'views/blocks/list.html'
|
|
|
|
}).
|
|
|
|
when('/blocks-date/:blockDate', {
|
2014-01-09 09:53:28 -08:00
|
|
|
templateUrl: 'views/blocks/list.html'
|
2014-01-08 06:56:36 -08:00
|
|
|
}).
|
2014-01-13 15:42:15 -08:00
|
|
|
when('/address/:addrStr', {
|
2014-01-10 04:37:18 -08:00
|
|
|
templateUrl: 'views/address.html'
|
|
|
|
}).
|
2014-01-16 05:54:21 -08:00
|
|
|
when('/status', {
|
|
|
|
templateUrl: 'views/status.html'
|
|
|
|
}).
|
2014-01-06 12:54:32 -08:00
|
|
|
otherwise({
|
2014-01-17 10:25:26 -08:00
|
|
|
templateUrl: 'views/404.html'
|
2014-01-06 12:54:32 -08:00
|
|
|
});
|
|
|
|
}
|
2014-01-06 12:34:25 -08:00
|
|
|
]);
|
|
|
|
|
|
|
|
//Setting HTML5 Location Mode
|
2014-01-17 06:46:12 -08:00
|
|
|
angular.module('insight').config(['$locationProvider',
|
2014-01-06 12:54:32 -08:00
|
|
|
function($locationProvider) {
|
|
|
|
$locationProvider.hashPrefix('!');
|
|
|
|
}
|
|
|
|
]);
|