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

67 lines
1.2 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',
2020-05-01 19:10:17 +02:00
remote: 'https://framadate-api.cipherbliss.com/api/v1',
};
2021-02-12 14:43:39 +01:00
const apiV1 = {
baseHref: 'https://framadate-api.cipherbliss.com/api/v1',
2021-02-12 14:43:39 +01:00
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',
};
2020-05-01 19:10:17 +02:00
export const environment = {
production: true,
display_routes: true,
autofill: true,
2021-02-12 14:43:39 +01:00
appTitle: 'FramaDate Funky',
appVersion: '2.1.0',
appLogo: 'assets/img/logo.png',
2020-05-01 19:10:17 +02:00
api: {
2021-02-12 14:43:39 +01:00
versionToUse: 'apiV1',
version: {
apiV1,
},
2020-05-01 19:10:17 +02:00
baseHref: backendApiUrlsInDev.remote,
endpoints: {
2020-05-05 18:17:12 +02:00
polls: {
2021-02-12 14:43:39 +01:00
name: '/poll',
2020-05-12 19:16:23 +02:00
choices: {
name: '/choices',
2020-05-01 19:10:17 +02:00
},
2020-05-05 18:17:12 +02:00
comments: {
name: '/comments',
2020-05-01 19:10:17 +02:00
},
2020-05-05 18:17:12 +02:00
slugs: {
name: '/slugs',
2020-05-01 19:10:17 +02:00
},
2020-05-12 19:16:23 +02:00
answers: {
name: '/answers',
},
2020-05-05 18:17:12 +02:00
},
users: {
name: '/users',
2020-05-01 19:10:17 +02:00
polls: {
name: '/polls',
sendEmail: {
2020-05-05 18:17:12 +02:00
name: '/send-email',
2020-05-01 19:10:17 +02:00
},
},
},
},
},
poll: {
defaultConfig: {
2021-02-12 14:43:39 +01:00
maxCountOfAnswers: 150,
expiresDaysDelay: 60,
2020-05-01 19:10:17 +02:00
expiracyAfterLastModificationInDays: 180,
2021-02-12 14:43:39 +01:00
whoCanChangeAnswers: 'everybody',
visibility: 'link_only',
voteChoices: 'only_yes',
2020-05-01 19:10:17 +02:00
},
},
localStorage: {
key: 'FramaSondage',
},
};