22 lines
585 B
CoffeeScript
22 lines
585 B
CoffeeScript
lunchApp = angular.module 'lunchApp', [
|
|
'ngRoute',
|
|
'lunchControllers',
|
|
'lunchServices'
|
|
]
|
|
|
|
lunchApp.config ['$routeProvider',
|
|
($routeProvider) ->
|
|
$routeProvider
|
|
.when '/run/:id',
|
|
templateUrl: 'templates/run.html',
|
|
controller: 'RunCtrl'
|
|
.when '/run/:id/order/:inviteeName',
|
|
templateUrl: 'templates/create-order.html',
|
|
controller: 'CreateOrderCtrl'
|
|
]
|
|
|
|
lunchApp.config ['$locationProvider',
|
|
($locationProvider) ->
|
|
$locationProvider.html5Mode(false).hashPrefix ''
|
|
]
|