Allow serving everything beneath a baseUrl with a path.
See: https://github.com/freifunkhamburg/ffffng/issues/44
This commit is contained in:
parent
3d6fb5feec
commit
8de06a0a8a
14 changed files with 85 additions and 55 deletions
app/scripts/directives
|
@ -1,10 +1,12 @@
|
|||
'use strict';
|
||||
|
||||
angular.module('ffffng')
|
||||
.directive('fFooter', function ($http) {
|
||||
.directive('fFooter', function ($http, config) {
|
||||
var pathPrefix = config.rootPath === '/' ? '' : config.rootPath;
|
||||
|
||||
var ctrl = function ($scope) {
|
||||
$scope.version = '?';
|
||||
$http.get('/api/version')
|
||||
$http.get(pathPrefix + '/api/version')
|
||||
.then(function (result) { $scope.version = result.data.version; });
|
||||
};
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue