forked from tykayn/funky-framadate-front
75 lines
1.7 KiB
TypeScript
75 lines
1.7 KiB
TypeScript
// 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 = {
|
|
local: '/api/v1',
|
|
remote: 'http://localhost:8000/api/v1',
|
|
};
|
|
const apiV1 = {
|
|
baseHref: 'http://localhost:8000/api/v1',
|
|
api_new_poll: '/poll/',
|
|
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 = {
|
|
production: false,
|
|
appTitle: 'FramaDate Funky',
|
|
appVersion: '2.0.0',
|
|
appLogo: 'assets/img/logo.png',
|
|
api: {
|
|
versionToUse: 'apiV1',
|
|
version: {
|
|
apiV1,
|
|
},
|
|
baseHref: backendApiUrlsInDev.local,
|
|
endpoints: {
|
|
polls: {
|
|
name: '/poll',
|
|
choices: {
|
|
name: '/choices',
|
|
},
|
|
comments: {
|
|
name: '/comments',
|
|
},
|
|
slugs: {
|
|
name: '/slugs',
|
|
},
|
|
answers: {
|
|
name: '/answers',
|
|
},
|
|
},
|
|
users: {
|
|
name: '/users',
|
|
polls: {
|
|
name: '/polls',
|
|
sendEmail: {
|
|
name: '/send-email',
|
|
},
|
|
},
|
|
},
|
|
},
|
|
},
|
|
poll: {
|
|
defaultConfig: {
|
|
maxCountOfAnswers: 150,
|
|
expiresDaysDelay: 60,
|
|
expiracyAfterLastModificationInDays: 180,
|
|
},
|
|
},
|
|
localStorage: {
|
|
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.
|