forked from tykayn/funky-framadate-front
76 lines
1.5 KiB
TypeScript
76 lines
1.5 KiB
TypeScript
const backendApiUrlsInDev = {
|
|
local: '/api/v1',
|
|
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}',
|
|
api_new_vote_stack: '/vote-stack',
|
|
'api_test-mail-poll': '/api/v1/poll/mail/test-mail-poll/{emailChoice}',
|
|
'app.swagger': '/api/doc.json',
|
|
};
|
|
|
|
export const environment = {
|
|
frontDomain: 'https://framadate-api.cipherbliss.com',
|
|
production: true,
|
|
display_routes: true,
|
|
showDemoWarning: true,
|
|
autofill_creation: true,
|
|
autofill_participation: true,
|
|
advanced_options_display: false,
|
|
autoSendNewPoll: false,
|
|
interval_days_default: 7,
|
|
expiresDaysDelay: 60,
|
|
maxCountOfAnswers: 150,
|
|
appTitle: 'FramaDate Funky',
|
|
appVersion: '2.1.0',
|
|
appLogo: 'assets/img/logo.png',
|
|
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',
|
|
},
|
|
},
|
|
localStorage: {
|
|
key: 'FramaSondage',
|
|
},
|
|
};
|