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

45 lines
1.0 KiB
JavaScript
Raw Normal View History

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-08 06:05:19 -08:00
}).
2014-01-20 13:52:28 -08:00
when('/block-index/:blockHeight', {
controller: 'BlocksController',
template: 'Redirecting...'
}).
when('/tx/:txId', {
templateUrl: '/views/transaction.html'
}).
2014-01-06 12:54:32 -08:00
when('/', {
templateUrl: '/views/index.html'
2014-01-06 12:54:32 -08:00
}).
2014-01-08 06:56:36 -08:00
when('/blocks', {
templateUrl: '/views/blocks/list.html'
2014-01-08 06:56:36 -08:00
}).
when('/blocks-date/:blockDate', {
templateUrl: '/views/blocks/list.html'
2014-01-08 06:56:36 -08:00
}).
when('/address/:addrStr', {
templateUrl: '/views/address.html'
2014-01-10 04:37:18 -08:00
}).
when('/status', {
templateUrl: '/views/status.html'
}).
2014-01-06 12:54:32 -08:00
otherwise({
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.html5Mode(true);
2014-01-06 12:54:32 -08:00
$locationProvider.hashPrefix('!');
}
]);