* 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
13 lines
247 B
JavaScript
13 lines
247 B
JavaScript
'use strict';
|
|
|
|
//Global service for global variables
|
|
angular.module('insight.system')
|
|
.factory('Global',[
|
|
function() {
|
|
}
|
|
])
|
|
.factory('Version',
|
|
function($resource, Api) {
|
|
return $resource(Api.apiPrefix + '/version');
|
|
});
|