framadate-responsive/src/environments/environment.prod.ts

75 lines
1.5 KiB
TypeScript
Raw Normal View History

2020-05-01 19:10:17 +02:00
const backendApiUrlsInDev = {
2020-05-12 19:16:23 +02:00
local: '/api/v1',
2021-05-20 15:08:06 +02:00
remote: 'https://framadate-api.cipherbliss.com/api/v1',
};
const apiV1 = {
baseHref: 'https://framadate-api.cipherbliss.com/api/v1',
api_new_poll: '/poll/',
api_get_poll: '/poll/{id}',
2021-06-07 12:16:56 +02:00
api_new_vote_stack: '/vote-stack',
2021-05-20 15:08:06 +02:00
'api_test-mail-poll': '/api/v1/poll/mail/test-mail-poll/{emailChoice}',
'app.swagger': '/api/doc.json',
2021-02-12 14:43:39 +01:00
};
2021-05-20 14:37:53 +02:00
2020-05-01 19:10:17 +02:00
export const environment = {
2021-05-20 15:08:06 +02:00
frontDomain: 'https://framadate-api.cipherbliss.com',
2020-05-01 19:10:17 +02:00
production: true,
display_routes: true,
2021-05-01 23:10:00 +02:00
showDemoWarning: true,
2021-11-12 12:09:48 +01:00
autofill_creation: true,
autofill_participation: true,
autoSendNewPoll: false,
2021-06-10 14:38:40 +02:00
interval_days_default: 7,
expiresDaysDelay: 60,
maxCountOfAnswers: 150,
2021-05-20 15:08:06 +02:00
appTitle: 'FramaDate Funky',
appVersion: '2.1.0',
2021-02-12 14:43:39 +01:00
appLogo: 'assets/img/logo.png',
2021-05-20 15:08:06 +02:00
api: {
versionToUse: 'apiV1',
version: {
apiV1,
},
baseHref: backendApiUrlsInDev.remote,
endpoints: {
polls: {
name: '/poll',
choices: {
name: '/choices',
},
comments: {
name: '/comments',
},
slugs: {
name: '/slugs',
},
answers: {
name: '/answers',
},
},
users: {
name: '/users',
polls: {
name: '/polls',
sendEmail: {
name: '/send-email',
},
},
},
},
},
poll: {
defaultConfig: {
maxCountOfAnswers: 150,
expiresDaysDelay: 60,
expiracyAfterLastModificationInDays: 180,
whoCanChangeAnswers: 'everybody',
visibility: 'link_only',
voteChoices: 'only_yes',
},
},
2020-05-01 19:10:17 +02:00
localStorage: {
2021-05-20 15:08:06 +02:00
key: 'FramaSondage',
2020-05-01 19:10:17 +02:00
},
};