mirror of
https://github.com/moparisthebest/mail
synced 2024-11-22 17:02:17 -05:00
add default route
This commit is contained in:
parent
6dc3e93112
commit
2dfe0cac0d
@ -6,15 +6,17 @@ require(['angular', 'js/controller/message-list', 'angularRoute', 'angularTouch'
|
||||
|
||||
var app = angular.module('mail', ['ngRoute', 'ngTouch']);
|
||||
app.config(function($routeProvider) {
|
||||
$routeProvider
|
||||
.when('/folders/:folder', {
|
||||
$routeProvider.when('/folders/:folder', {
|
||||
templateUrl: 'tpl/message-list-desktop.html',
|
||||
controller: MessageListCtrl
|
||||
})
|
||||
.when('/folders/:folder/messages/:messageId', {
|
||||
});
|
||||
$routeProvider.when('/folders/:folder/messages/:messageId', {
|
||||
templateUrl: 'tpl/read.html',
|
||||
controller: MessageListCtrl
|
||||
});
|
||||
$routeProvider.otherwise({
|
||||
redirectTo: '/folders/Inbox'
|
||||
});
|
||||
});
|
||||
|
||||
angular.element().ready(function() {
|
||||
|
Loading…
Reference in New Issue
Block a user