add environments and configuration.service.ts for admin
This commit is contained in:
13
admin/src/app/services/configuration.service.ts
Normal file
13
admin/src/app/services/configuration.service.ts
Normal file
@@ -0,0 +1,13 @@
|
||||
import { Injectable } from '@angular/core';
|
||||
import { environment } from '../../environments/environment';
|
||||
|
||||
@Injectable({
|
||||
providedIn: 'root',
|
||||
})
|
||||
export class ConfigurationService {
|
||||
|
||||
public getApiUrl(): string{
|
||||
return environment.apiUrl;
|
||||
}
|
||||
|
||||
}
|
||||
16
admin/src/app/services/configuration.spec.ts
Normal file
16
admin/src/app/services/configuration.spec.ts
Normal file
@@ -0,0 +1,16 @@
|
||||
import { TestBed } from '@angular/core/testing';
|
||||
|
||||
import { ConfigurationService } from './configuration.service';
|
||||
|
||||
describe('Configuration', () => {
|
||||
let service: ConfigurationService;
|
||||
|
||||
beforeEach(() => {
|
||||
TestBed.configureTestingModule({});
|
||||
service = TestBed.inject(ConfigurationService);
|
||||
});
|
||||
|
||||
it('should be created', () => {
|
||||
expect(service).toBeTruthy();
|
||||
});
|
||||
});
|
||||
Reference in New Issue
Block a user