refactor(dashboard): Restructured front-end dashboard code.
This commit is contained in:
10
mod/dashboard/app/scripts/common/services/prefix-url.js
Normal file
10
mod/dashboard/app/scripts/common/services/prefix-url.js
Normal file
@ -0,0 +1,10 @@
|
||||
'use strict';
|
||||
|
||||
angular.module('etcdControlPanel')
|
||||
.factory('prefixUrl', function(urlPrefix) {
|
||||
|
||||
return function(url) {
|
||||
return urlPrefix + url;
|
||||
}
|
||||
|
||||
});
|
Reference in New Issue
Block a user