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

70 lines
1.5 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-01 19:10:17 +02:00
local: 'http://localhost:8000',
remote: 'https://framadate-api.cipherbliss.com/api/v1',
};
export const environment = {
2020-04-21 10:50:26 +02:00
production: false,
2020-04-22 12:56:18 +02:00
appTitle: 'FramaSondage',
api: {
2020-05-01 19:10:17 +02:00
baseHref: backendApiUrlsInDev.remote,
endpoints: {
2020-05-01 19:10:17 +02:00
polls: {
name: '/polls',
votes: {
name: '/votes',
},
2020-05-01 19:10:17 +02:00
comments: {
name: '/comments',
},
2020-05-01 19:10:17 +02:00
slugs: {
name: '/slugs',
},
},
2020-05-01 19:10:17 +02:00
voteStack: {
name: '/votes-stacks',
},
users: {
name: '/users',
polls: {
name: '/polls',
sendEmail: {
2020-05-01 19:10:17 +02:00
name: '/send-email',
},
},
},
admin: {
name: '/admin',
2020-05-01 19:10:17 +02:00
polls: {
name: '/polls',
clean: {
name: '/clean',
},
},
},
},
},
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.