Rearrange things
This commit is contained in:
@@ -7,20 +7,12 @@ lunchApp = angular.module 'lunchApp', [
|
||||
lunchApp.config ['$routeProvider',
|
||||
($routeProvider) ->
|
||||
$routeProvider
|
||||
.when '/home',
|
||||
templateUrl: 'templates/home.html',
|
||||
controller: 'HomeCtrl'
|
||||
.when '/run/create',
|
||||
templateUrl: 'templates/create-run.html',
|
||||
controller: 'CreateRunCtrl'
|
||||
.when '/run/:id',
|
||||
templateUrl: 'templates/run.html',
|
||||
controller: 'RunCtrl'
|
||||
.when '/run/:id/order/:inviteeName',
|
||||
templateUrl: 'templates/create-order.html',
|
||||
controller: 'CreateOrderCtrl'
|
||||
.otherwise
|
||||
redirectTo: '/home'
|
||||
]
|
||||
|
||||
lunchApp.config ['$locationProvider',
|
||||
|
||||
Reference in New Issue
Block a user