2020-05-01 19:10:17 +02:00
|
|
|
const backendApiUrlsInDev = {
|
|
|
|
local: 'http://localhost:8000/api',
|
|
|
|
remote: 'https://framadate-api.cipherbliss.com/api/v1',
|
|
|
|
};
|
|
|
|
|
|
|
|
export const environment = {
|
|
|
|
production: true,
|
|
|
|
appTitle: 'FramaSondage',
|
|
|
|
api: {
|
|
|
|
baseHref: backendApiUrlsInDev.remote,
|
|
|
|
endpoints: {
|
|
|
|
poll: {
|
|
|
|
name: '/poll',
|
|
|
|
vote: {
|
|
|
|
name: '/vote',
|
|
|
|
},
|
|
|
|
comment: {
|
|
|
|
name: '/comment',
|
|
|
|
},
|
|
|
|
slug: {
|
|
|
|
name: '/slug',
|
|
|
|
},
|
|
|
|
},
|
|
|
|
user: {
|
|
|
|
name: '/user',
|
|
|
|
polls: {
|
|
|
|
name: '/polls',
|
|
|
|
sendEmail: {
|
|
|
|
name: '/polls/send-email',
|
|
|
|
},
|
|
|
|
},
|
|
|
|
},
|
|
|
|
admin: {
|
|
|
|
name: '/admin',
|
|
|
|
cleanPolls: {
|
|
|
|
name: '/admin/clean-polls',
|
|
|
|
},
|
|
|
|
},
|
|
|
|
},
|
|
|
|
},
|
|
|
|
poll: {
|
|
|
|
defaultConfig: {
|
|
|
|
expiracyInDays: 60,
|
|
|
|
expiracyAfterLastModificationInDays: 180,
|
|
|
|
},
|
|
|
|
},
|
|
|
|
localStorage: {
|
|
|
|
key: 'FramaSondage',
|
|
|
|
},
|
|
|
|
};
|