angular.module('linksdasemana').config(function ($routeProvider) {
    $routeProvider
        .when('/', {
            templateUrl: 'js/views/startpage.html',
            controller: 'startPageController'
        })
        .when('/lista/', {
            template: '<list-itens></list-itens>',
            controller: 'listPageController'
        })        
        .when('/lista/categorias/', {
            template: '<list-itens-per-category></list-itens-per-category>',
            controller: 'listPageController'
        })                      
        .when('/lista/semanas/', {
            template: '<list-itens-per-week></list-itens-per-week>',
            controller: 'listPageController'
        })                              
        .when('/novo', {
            template: '<insert-line></insert-line>',
            controller: 'insertPageController'
        });
});