mirror of
https://github.com/DeviceFarmer/stf.git
synced 2026-04-19 08:33:24 +02:00
22 lines
590 B
JavaScript
22 lines
590 B
JavaScript
define(['./app'], function(app) {
|
|
return app.config([
|
|
'$routeProvider'
|
|
, '$locationProvider'
|
|
, function($routeProvider, $locationProvider) {
|
|
$locationProvider.hashPrefix('!')
|
|
$routeProvider
|
|
.when('/devices', {
|
|
templateUrl: 'partials/devices/index'
|
|
, controller: 'DeviceListCtrl'
|
|
})
|
|
.when('/devices/:serial', {
|
|
templateUrl: 'partials/devices/control'
|
|
, controller: 'DeviceControlCtrl'
|
|
})
|
|
.otherwise({
|
|
redirectTo: '/devices'
|
|
})
|
|
}
|
|
])
|
|
})
|