'use strict';

var pathwayApp = angular.module('pathwayApp', ['ui.router', 'templates']);

pathwayApp.config(function($stateProvider, $urlRouterProvider, $locationProvider) {
  //Default route
  $urlRouterProvider.otherwise('/');
  $locationProvider.html5Mode(true);
  $stateProvider
  .state('home', {
    url: '/',
    templateUrl: 'index.html',
    // templateUrl: '../app/assets/templates/index.html',
    controller: 'HomeController'
  })
  .state('login', {
    url: '/user/login',
    templateUrl: 'login.html',
    controller: 'UserController'
  })
});

'use strict';

var pathwayApp = angular.module('pathwayApp', ['ui.router', 'templates']);

pathwayApp.config(function($stateProvider, $urlRouterProvider, $locationProvider) {
  //Default route
  $urlRouterProvider.otherwise('/');
  $locationProvider.html5Mode(true);
  $stateProvider
  .state('home', {
    url: '/',
    templateUrl: 'index.html',
    controller: 'HomeController'
  })
  .state('logout', {
    url: '/',
    controller: 'UserController'
  })
  .state('login', {
    url: '/user/login',
    templateUrl: 'login.html',
    controller: 'UserController'
  })
  .state('register', {
    url: '/user/new',
    tempalteUrl: 'register.html',
    controller: 'UserController'
  })
});

Add logout and register state, remove incorrect templateUrl