update env for prod

This commit is contained in:
Tykayn 2021-02-12 14:43:39 +01:00 committed by tykayn
parent 7b5cf59b99
commit 3c3dddafa5
2 changed files with 20 additions and 5 deletions

View File

@ -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: {

View File

@ -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',