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 = {
|
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',
|
2020-04-19 14:22:10 +02:00
|
|
|
};
|
2020-11-09 12:44:24 +01:00
|
|
|
const apiV1 = {
|
|
|
|
baseHref: 'https://framadate-api.cipherbliss.com/api/v1',
|
2020-11-13 09:38:42 +01:00
|
|
|
api_new_poll: '/poll/',
|
2020-11-09 12:44:24 +01:00
|
|
|
api_get_poll: '/poll/{id}',
|
|
|
|
'api_test-mail-poll': '/api/v1/poll/mail/test-mail-poll/{emailChoice}',
|
|
|
|
'app.swagger': '/api/doc.json',
|
|
|
|
};
|
2020-04-19 14:22:10 +02:00
|
|
|
|
2019-08-09 13:38:51 +02:00
|
|
|
export const environment = {
|
2020-04-21 10:50:26 +02:00
|
|
|
production: false,
|
2021-10-15 09:39:51 +02:00
|
|
|
appTitle: 'FramaDate',
|
2020-10-31 16:12:44 +01:00
|
|
|
appVersion: '2.0.0',
|
2020-10-17 11:12:53 +02:00
|
|
|
appLogo: 'assets/img/logo.png',
|
2020-04-21 17:26:25 +02:00
|
|
|
api: {
|
2020-11-09 12:44:24 +01:00
|
|
|
versionToUse: 'apiV1',
|
|
|
|
version: {
|
|
|
|
apiV1,
|
|
|
|
},
|
2020-05-05 18:17:12 +02:00
|
|
|
baseHref: backendApiUrlsInDev.local,
|
2020-04-21 17:26:25 +02:00
|
|
|
endpoints: {
|
2020-05-01 19:10:17 +02:00
|
|
|
polls: {
|
2020-11-09 12:44:24 +01:00
|
|
|
name: '/poll',
|
2020-05-12 19:16:23 +02:00
|
|
|
choices: {
|
|
|
|
name: '/choices',
|
2020-05-05 18:17:12 +02:00
|
|
|
},
|
2020-05-01 19:10:17 +02:00
|
|
|
comments: {
|
|
|
|
name: '/comments',
|
2020-04-21 17:26:25 +02:00
|
|
|
},
|
2020-05-01 19:10:17 +02:00
|
|
|
slugs: {
|
|
|
|
name: '/slugs',
|
2020-04-21 17:26:25 +02:00
|
|
|
},
|
2020-05-12 19:16:23 +02:00
|
|
|
answers: {
|
|
|
|
name: '/answers',
|
|
|
|
},
|
2020-04-21 17:26:25 +02:00
|
|
|
},
|
2020-05-01 19:10:17 +02:00
|
|
|
users: {
|
|
|
|
name: '/users',
|
2020-04-21 17:26:25 +02:00
|
|
|
polls: {
|
|
|
|
name: '/polls',
|
|
|
|
sendEmail: {
|
2020-05-01 19:10:17 +02:00
|
|
|
name: '/send-email',
|
2020-04-21 17:26:25 +02:00
|
|
|
},
|
|
|
|
},
|
|
|
|
},
|
|
|
|
},
|
|
|
|
},
|
|
|
|
poll: {
|
|
|
|
defaultConfig: {
|
|
|
|
expiracyInDays: 60,
|
|
|
|
expiracyAfterLastModificationInDays: 180,
|
|
|
|
},
|
|
|
|
},
|
|
|
|
localStorage: {
|
2020-04-22 12:56:18 +02:00
|
|
|
key: 'FramaSondage',
|
2020-04-21 17:26:25 +02:00
|
|
|
},
|
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.
|