flocore-node/public/js/config.js
2014-01-09 15:17:52 -03:00

34 lines
734 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'
}).
otherwise({
redirectTo: '/'
});
}
]);
//Setting HTML5 Location Mode
angular.module('mystery').config(['$locationProvider',
function($locationProvider) {
$locationProvider.hashPrefix('!');
}
]);