mirror of
https://github.com/DSpace/dspace-angular.git
synced 2025-10-07 01:54:15 +00:00
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';
|
||||
|
||||
export const restServiceFactory = (cfg: GlobalConfig, mocks: MockResponseMap, http: HttpClient) => {
|
||||
if (ENV_CONFIG.production) {
|
||||
return new DSpaceRESTv2Service(http);
|
||||
} else {
|
||||
// if (ENV_CONFIG.production) {
|
||||
// return new DSpaceRESTv2Service(http);
|
||||
// } else {
|
||||
return new EndpointMockingRestService(cfg, mocks, http);
|
||||
}
|
||||
// }
|
||||
};
|
||||
|
||||
const IMPORTS = [
|
||||
|
Reference in New Issue
Block a user