* move window.apiPrefix into Angular service
* avoid routing by accept headers, integrate api service
* Revert "Fixed over-matching of index route."
This reverts commit 62e1225dd3.
* better name for index template file
18 lines
402 B
JavaScript
18 lines
402 B
JavaScript
'use strict';
|
|
|
|
angular.module('insight.status')
|
|
.factory('Status',
|
|
function($resource, Api) {
|
|
return $resource(Api.apiPrefix + '/status', {
|
|
q: '@q'
|
|
});
|
|
})
|
|
.factory('Sync',
|
|
function($resource, Api) {
|
|
return $resource(Api.apiPrefix + '/sync');
|
|
})
|
|
.factory('PeerSync',
|
|
function($resource, Api) {
|
|
return $resource(Api.apiPrefix + '/peer');
|
|
});
|