diff --git a/src/environments/environment.prod.ts b/src/environments/environment.prod.ts index cd51ae38..7f6e47f0 100644 --- a/src/environments/environment.prod.ts +++ b/src/environments/environment.prod.ts @@ -2,17 +2,28 @@ const backendApiUrlsInDev = { local: '/api/v1', remote: 'https://framadate-api.cipherbliss.com/api/v1', }; +const apiV1 = { + baseHref: 'http://localhost:8000/api/v1', + api_new_poll: '/poll/', + api_get_poll: '/poll/{id}', + 'api_test-mail-poll': '/api/v1/poll/mail/test-mail-poll/{emailChoice}', + 'app.swagger': '/api/doc.json', +}; export const environment = { production: true, - appTitle: 'FramaDate', - appVersion: '2.0.0', - appLogo: '/assets/img/logo.png', + appTitle: 'FramaDate Funky', + appVersion: '2.1.0', + appLogo: 'assets/img/logo.png', api: { + versionToUse: 'apiV1', + version: { + apiV1, + }, baseHref: backendApiUrlsInDev.remote, endpoints: { polls: { - name: '/polls', + name: '/poll', choices: { name: '/choices', }, @@ -39,8 +50,12 @@ export const environment = { }, poll: { defaultConfig: { + maxCountOfAnswers: 150, expiresDaysDelay: 60, expiracyAfterLastModificationInDays: 180, + whoCanChangeAnswers: 'everybody', + visibility: 'link_only', + voteChoices: 'only_yes', }, }, localStorage: { diff --git a/src/environments/environment.ts b/src/environments/environment.ts index 07299112..91c038d9 100644 --- a/src/environments/environment.ts +++ b/src/environments/environment.ts @@ -17,7 +17,7 @@ const apiV1 = { export const environment = { production: false, appTitle: 'FramaDate Funky', - appVersion: '2.0.0', + appVersion: '2.1.0', appLogo: 'assets/img/logo.png', api: { versionToUse: 'apiV1',