Rename public to www
This commit is contained in:
24
www/linker/js/app.js
Normal file
24
www/linker/js/app.js
Normal file
@@ -0,0 +1,24 @@
|
||||
var lunchApp;
|
||||
|
||||
lunchApp = angular.module('lunchApp', ['ngRoute', 'lunchControllers', 'lunchServices']);
|
||||
|
||||
lunchApp.config([
|
||||
'$routeProvider', function($routeProvider) {
|
||||
return $routeProvider.when('/', {
|
||||
templateUrl: 'templates/home.html',
|
||||
controller: 'HomeCtrl'
|
||||
}).when('/run/:id', {
|
||||
templateUrl: 'templates/run.html',
|
||||
controller: 'RunCtrl'
|
||||
}).when('/run/:id/order/:inviteeName', {
|
||||
templateUrl: 'templates/create-order.html',
|
||||
controller: 'CreateOrderCtrl'
|
||||
});
|
||||
}
|
||||
]);
|
||||
|
||||
lunchApp.config([
|
||||
'$locationProvider', function($locationProvider) {
|
||||
return $locationProvider.html5Mode(false).hashPrefix('');
|
||||
}
|
||||
]);
|
||||
Reference in New Issue
Block a user