framadate-responsive/src/environments/environment.ts

75 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',
remote: 'http://localhost:8000/api/v1',
};
2020-11-09 12:44:24 +01:00
const apiV1 = {
baseHref: 'http://localhost:8000/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',
};
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: {
maxCountOfAnswers: 150,
expiresDaysDelay: 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.