Skip to content
Snippets Groups Projects
Commit 19f61a6a authored by Homada.Boumedane's avatar Homada.Boumedane
Browse files

refactor(dlcm-portal): add properties for endpoint

add properties for different endpoints modules in the configuration
parent e0325177
No related branches found
No related tags found
No related merge requests found
......@@ -9,7 +9,11 @@ import {ThemeEnum} from "@app/shared/enums/theme.enum";
export const defaultEnvironment = {
appTitle: "DLCM - Portal",
production: false,
API_BASE_PATH: "/api",
API_ENDPOINT_ADMIN: "https://to-set/administration",
API_ENDPOINT_ACCESSION: "https://to-set/accession",
API_ENDPOINT_INGESTION: "https://to-set/ingestion",
API_ENDPOINT_PREINGEST: "https://to-set/accession",
API_ENDPOINT_STORAGION: "https://to-set/storagion",
theme: ThemeEnum.dlcm,
defaultLanguage: LanguagesEnum.en,
pageSizeOptions: [5, 10, 25, 50, 100],
......
......@@ -5,7 +5,11 @@ export const environment = {
...defaultEnvironment,
theme: ThemeEnum.yareta,
production: true,
API_BASE_PATH: "https://test.dlcm.ch",
API_ENDPOINT_ADMIN: "https://test.dlcm.ch/administration",
API_ENDPOINT_ACCESSION: "https://test.dlcm.ch/accession",
API_ENDPOINT_INGESTION: "https://test.dlcm.ch/ingestion",
API_ENDPOINT_PREINGEST: "https://test.dlcm.ch/accession",
API_ENDPOINT_STORAGION: "https://test.dlcm.ch/storagion",
oauthTokenEndpoint: "https://test.dlcm.ch/authorization/oauth/token",
oauthDummyClientSecret: "123abc",
oauthClientId: "local-dev-angular",
......
......@@ -9,12 +9,12 @@ import {defaultEnvironment} from "./environment.defaults";
export const environment = {
...defaultEnvironment,
theme: ThemeEnum.yareta,
oauthTokenEndpoint: "http://localhost/dlcm/authorisation/token",
oauthTokenEndpoint: "http://localhost/dlcm-authorization/oauth/token",
oauthDummyClientSecret: "123abc",
oauthClientId: "local-dev-angular",
oauthScope: "READ",
oauthRequireHttps: false,
oauthLoginUrl: "http://localhost/dlcm/authorisation/authorize",
oauthLoginUrl: "http://localhost/dlcm-authorization/oauth/authorize",
oauthRedirectUrl: window.location.origin,
};
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment