Files
lunchrun.me/assets/linker/js/app.coffee
2014-04-07 21:40:35 -05:00

30 lines
897 B
CoffeeScript

lunchApp = angular.module 'lunchApp', [
'ngRoute',
'lunchControllers',
'lunchServices'
]
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',
($locationProvider) ->
$locationProvider.html5Mode(false).hashPrefix ''
]