framadate-responsive/src/environments/environment.ts
2020-04-21 14:51:25 +02:00

63 lines
1.8 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: 'http://localhost:8000/',
remote: 'https://framadate-api.cipherbliss.com/',
};
export const environment = {
production: false,
api: {
baseHref: backendApiUrlsInDev.local + 'api/v1',
endpoints: {
poll: {
name: '/poll',
vote: {
name: '/vote',
},
comment: {
name: '/comment',
},
slug: {
name: '/slug',
},
},
user: {
name: '/user',
polls: {
name: '/polls',
sendEmail: {
name: '/polls/send-email',
},
},
},
admin: {
name: '/admin',
cleanPolls: {
name: '/admin/clean-polls',
},
},
},
},
poll: {
defaultConfig: {
expiracyInDays: 60,
expiracyAfterLastModificationInDays: 180,
},
},
localStorage: {
key: 'framadate-storage',
},
};
/*
* 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.