'use strict';

angular.module('CarePRN', ['firebase', 'ui.router', 'ui.mask']);


angular.module('CarePRN').config(['$stateProvider', '$urlRouterProvider', function ($stateProvider, $urlRouterProvider) {

    $urlRouterProvider.otherwise('/home');

    $stateProvider
        .state('home', {
            url: '/home',
            templateUrl: '/app/home/homePageTemplate.html',
            controller: 'carePRNController'
        })
        .state('signup', {
            url: '/signup',
            templateUrl: '/app/signup/signup.html',
            controller: 'signupController'
        }).
        state('successfulSignUp', {
            url: '/success',
            templateUrl: '/app/signup/successfulSignUpTemplate.html',
            controller: 'successfulSignUpController'
        }).
        state('admin', {
            url: '/admin',
            templateUrl: '/app/admin/adminTemplate.html',
            controller: 'adminController'
        }).
        state('news', {
            url: '/news',
            templateUrl: '/app/news/newsTemplate.html',
            controller: 'newsController'
        });
}]);