mirror of
https://github.com/DeviceFarmer/stf.git
synced 2026-04-23 22:35:25 +02:00
Attempting to make it easier to work with a single device. Still not bound to the new controlService.
This commit is contained in:
@@ -3,14 +3,18 @@ define(['./app'], function(app) {
|
||||
'$routeProvider'
|
||||
, '$locationProvider'
|
||||
, function($routeProvider, $locationProvider) {
|
||||
$locationProvider.html5Mode(true)
|
||||
$locationProvider.hashPrefix('!')
|
||||
$routeProvider
|
||||
.when('/', {
|
||||
templateUrl: 'partials/deviceList'
|
||||
.when('/devices', {
|
||||
templateUrl: 'partials/devices/index'
|
||||
, controller: 'DeviceListCtrl'
|
||||
})
|
||||
.when('/devices/:serial', {
|
||||
templateUrl: 'partials/devices/control'
|
||||
, controller: 'DeviceControlCtrl'
|
||||
})
|
||||
.otherwise({
|
||||
redirectTo: '/'
|
||||
redirectTo: '/devices'
|
||||
})
|
||||
}
|
||||
])
|
||||
|
||||
Reference in New Issue
Block a user