insight-ui-zcash/public/js/config.js

40 lines
883 B
JavaScript
Executable File

'use strict';
//Setting up route
angular.module('mystery').config(['$routeProvider',
function($routeProvider) {
$routeProvider.
when('/block/:blockHash', {
templateUrl: 'views/block.html'
}).
when('/tx/:txId', {
templateUrl: 'views/transaction.html'
}).
when('/', {
templateUrl: 'views/index.html'
}).
when('/blocks', {
templateUrl: 'views/blocks/list.html'
}).
when('/blocks-date/:blockDate', {
templateUrl: 'views/blocks/list.html'
}).
when('/address/:addrStr', {
templateUrl: 'views/address.html'
}).
when('/status', {
templateUrl: 'views/status.html'
}).
otherwise({
redirectTo: '/'
});
}
]);
//Setting HTML5 Location Mode
angular.module('mystery').config(['$locationProvider',
function($locationProvider) {
$locationProvider.hashPrefix('!');
}
]);