var loginModule = angular.module('login', ['auth', 'ngAnimate', 'placeholder']);

loginModule.config(['$stateProvider', '$urlRouterProvider',
    function($stateProvider, $urlRouterProvider) {
        'use strict';

        $stateProvider.
            state('anon.login', {
                url: '/login',
                templateUrl: 'anon/login',
                controller: 'loginController'
            }).
            state('anon.signup', {
                url: '/signup/:token',
                templateUrl: 'anon/signup',
                controller: 'signupController'
            });

        $urlRouterProvider.when('/signup', '/login');
    }
]);