2020-05-01 19:10:17 +02:00
|
|
|
const backendApiUrlsInDev = {
|
2020-05-05 18:17:12 +02:00
|
|
|
local: 'http://localhost:8000',
|
2020-05-01 19:10:17 +02:00
|
|
|
remote: 'https://framadate-api.cipherbliss.com/api/v1',
|
|
|
|
};
|
|
|
|
|
|
|
|
export const environment = {
|
|
|
|
production: true,
|
|
|
|
appTitle: 'FramaSondage',
|
|
|
|
api: {
|
|
|
|
baseHref: backendApiUrlsInDev.remote,
|
|
|
|
endpoints: {
|
2020-05-05 18:17:12 +02:00
|
|
|
polls: {
|
|
|
|
name: '/polls',
|
|
|
|
votes: {
|
|
|
|
name: '/votes',
|
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-05 18:17:12 +02:00
|
|
|
voteStack: {
|
|
|
|
name: '/votes-stacks',
|
|
|
|
},
|
|
|
|
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
|
|
|
},
|
|
|
|
},
|
|
|
|
},
|
|
|
|
admin: {
|
|
|
|
name: '/admin',
|
2020-05-05 18:17:12 +02:00
|
|
|
polls: {
|
|
|
|
name: '/polls',
|
|
|
|
clean: {
|
|
|
|
name: '/clean',
|
|
|
|
},
|
2020-05-01 19:10:17 +02:00
|
|
|
},
|
|
|
|
},
|
|
|
|
},
|
|
|
|
},
|
|
|
|
poll: {
|
|
|
|
defaultConfig: {
|
|
|
|
expiracyInDays: 60,
|
|
|
|
expiracyAfterLastModificationInDays: 180,
|
|
|
|
},
|
|
|
|
},
|
|
|
|
localStorage: {
|
|
|
|
key: 'FramaSondage',
|
|
|
|
},
|
|
|
|
};
|