
angular.module('app')
.config(function ($stateProvider, $urlRouterProvider, $locationProvider) {
	// TODO: Enable this when server is properly configured
	// $locationProvider.html5Mode(true);

	$urlRouterProvider.otherwise('/');

	$stateProvider
		.state('index', {
			url: '/',
			templateUrl: 'partials/index.html',
			controller: 'MainCtrl'
		})
		.state('list', {
			url: '/r/:resourceName/list/:id/?selectionMode',
			templateUrl: 'partials/actions/list.html',
			controller: 'ListCtrl'
		})
		.state('add', {
			url: '/r/:resourceName/add',
			templateUrl: 'partials/actions/add.html',
			controller: 'AddCtrl'
		})
		.state('edit', {
			url: '/r/:resourceName/edit/:id',
			templateUrl: 'partials/actions/edit.html',
			controller: 'EditCtrl'
		});
});


angular.module('app')
.config(function ($stateProvider, $urlRouterProvider, $locationProvider) {
	// TODO: Enable this when server is properly configured
	// $locationProvider.html5Mode(true);

	$urlRouterProvider.otherwise('/');

	$stateProvider
		.state('index', {
			url: '/',
			templateUrl: 'partials/index.html',
			controller: 'MainCtrl'
		})
		.state('list', {
			url: '/r/:resourceName/list/:id?selectionMode',
			templateUrl: 'partials/actions/list.html',
			controller: 'ListCtrl'
		})
		.state('add', {
			url: '/r/:resourceName/add',
			templateUrl: 'partials/actions/add.html',
			controller: 'AddCtrl'
		})
		.state('edit', {
			url: '/r/:resourceName/edit/:id',
			templateUrl: 'partials/actions/edit.html',
			controller: 'EditCtrl'
		});
});

Fix bad URL schema for list that would could direct URL with no ID not to always match
Fix bad URL schema for list that would could direct URL with no ID not to always match
