1
0
mirror of https://github.com/moparisthebest/mail synced 2024-11-22 17:02:17 -05:00

add default route

This commit is contained in:
Tankred Hase 2013-09-07 00:34:36 +02:00
parent 6dc3e93112
commit 2dfe0cac0d

View File

@ -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() {