2019-08-09 13:38:51 +02:00
|
|
|
// This file can be replaced during build by using the `fileReplacements` array.
|
|
|
|
// `ng build --prod` replaces `environment.ts` with `environment.prod.ts`.
|
|
|
|
// The list of file replacements can be found in `angular.json`.
|
2020-04-19 14:22:10 +02:00
|
|
|
|
|
|
|
const backendApiUrlsInDev = {
|
|
|
|
local: 'http://localhost:8000/',
|
|
|
|
remote: 'https://framadate-api.cipherbliss.com/',
|
|
|
|
};
|
|
|
|
|
2019-08-09 13:38:51 +02:00
|
|
|
export const environment = {
|
2019-11-19 11:19:21 +01:00
|
|
|
production: false,
|
2020-04-19 14:22:10 +02:00
|
|
|
api: {
|
|
|
|
baseHref: backendApiUrlsInDev.local + 'api/v1',
|
|
|
|
endpoints: {
|
|
|
|
slug: {
|
|
|
|
root: '/slug',
|
|
|
|
isAvailable: '/check-slug-is-uniq',
|
|
|
|
},
|
|
|
|
poll: {
|
|
|
|
root: '/poll',
|
|
|
|
byEmail: {
|
|
|
|
sendEmail: '/send-polls-to-user',
|
|
|
|
retrieve: '/my-polls',
|
|
|
|
},
|
|
|
|
byUrl: '/poll/slug',
|
|
|
|
byId: '/poll/slug',
|
|
|
|
},
|
|
|
|
vote: {
|
|
|
|
root: '/vote',
|
|
|
|
},
|
|
|
|
comment: {
|
|
|
|
root: '/comment',
|
|
|
|
},
|
|
|
|
},
|
|
|
|
},
|
|
|
|
poll: {
|
|
|
|
defaultConfig: {
|
|
|
|
expiracyInDays: 60,
|
|
|
|
expiracyAfterLastModificationInDays: 180,
|
|
|
|
},
|
|
|
|
},
|
|
|
|
localStorage: {
|
|
|
|
key: 'framadate-storage',
|
|
|
|
},
|
2019-08-09 13:38:51 +02:00
|
|
|
};
|
|
|
|
|
|
|
|
/*
|
|
|
|
* For easier debugging in development mode, you can import the following file
|
|
|
|
* to ignore zone related error stack frames such as `zone.run`, `zoneDelegate.invokeTask`.
|
|
|
|
*
|
|
|
|
* This import should be commented out in production mode because it will have a negative impact
|
|
|
|
* on performance if an error is thrown.
|
|
|
|
*/
|
2020-04-19 14:22:10 +02:00
|
|
|
import 'zone.js/dist/zone-error'; // Included with Angular CLI.
|