funky-framadate-front/src/environments/environment.ts

74 lines
1.7 KiB
TypeScript
Raw Normal View History

// 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`.
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-11-09 12:44:24 +01:00
const apiV1 = {
baseHref: 'https://framadate-api.cipherbliss.com/api/v1',
api_new_poll: '/poll/new',
api_get_poll: '/poll/{id}',
'api_test-mail-poll': '/api/v1/poll/mail/test-mail-poll/{emailChoice}',
'app.swagger': '/api/doc.json',
};
export const environment = {
2020-04-21 10:50:26 +02:00
production: false,
appTitle: 'FramaDate Funky',
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',
api: {
2020-11-09 12:44:24 +01:00
versionToUse: 'apiV1',
version: {
apiV1,
},
2020-05-05 18:17:12 +02:00
baseHref: backendApiUrlsInDev.local,
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-05-01 19:10:17 +02:00
slugs: {
name: '/slugs',
},
2020-05-12 19:16:23 +02:00
answers: {
name: '/answers',
},
},
2020-05-01 19:10:17 +02:00
users: {
name: '/users',
polls: {
name: '/polls',
sendEmail: {
2020-05-01 19:10:17 +02:00
name: '/send-email',
},
},
},
},
},
poll: {
defaultConfig: {
expiracyInDays: 60,
expiracyAfterLastModificationInDays: 180,
},
},
localStorage: {
2020-04-22 12:56:18 +02:00
key: 'FramaSondage',
},
};
/*
* 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.
*/
import 'zone.js/dist/zone-error'; // Included with Angular CLI.