Code improvements

- move auth token out of the document list (to the settings service for
now)

refs #9
This commit is contained in:
Denys Vuika
2016-05-04 14:58:54 +01:00
parent 9139a8a0ed
commit 4a6d0c55bf
7 changed files with 31 additions and 4 deletions

View File

@@ -14,6 +14,7 @@
* See the License for the specific language governing permissions and
* limitations under the License.
*/
import {Injectable} from 'angular2/core';
@Injectable()
@@ -27,4 +28,9 @@ export class AlfrescoSettingsService {
public set host(value:string) {
this._host = value;
}
getAuthToken(): string {
// todo: get proper token value
return 'Basic ' + btoa('admin:admin');
}
}