forked from hazza/dspace-angular
62849: enabled mock service in prod mode
This commit is contained in:
@@ -97,11 +97,11 @@ import { EndpointMockingRestService } from './dspace-rest-v2/endpoint-mocking-re
|
|||||||
import { ENV_CONFIG, GLOBAL_CONFIG, GlobalConfig } from '../../config';
|
import { ENV_CONFIG, GLOBAL_CONFIG, GlobalConfig } from '../../config';
|
||||||
|
|
||||||
export const restServiceFactory = (cfg: GlobalConfig, mocks: MockResponseMap, http: HttpClient) => {
|
export const restServiceFactory = (cfg: GlobalConfig, mocks: MockResponseMap, http: HttpClient) => {
|
||||||
if (ENV_CONFIG.production) {
|
// if (ENV_CONFIG.production) {
|
||||||
return new DSpaceRESTv2Service(http);
|
// return new DSpaceRESTv2Service(http);
|
||||||
} else {
|
// } else {
|
||||||
return new EndpointMockingRestService(cfg, mocks, http);
|
return new EndpointMockingRestService(cfg, mocks, http);
|
||||||
}
|
// }
|
||||||
};
|
};
|
||||||
|
|
||||||
const IMPORTS = [
|
const IMPORTS = [
|
||||||
|
Reference in New Issue
Block a user