4 // _all modules only reference dependencies
5 angular.module('ConfigApp', [])
7 // Factory is a singleton and share its context within all instances.
8 .factory('ConfigApp', function () {
12 paths: { // Warning paths should end with /
14 avatars: 'images/avatars/'
17 api: { // Warning paths should end with /
21 session: { // Those data are updated by session service
22 refresh : '/api/token/refresh',
23 ping : '/api/token/check',
24 token : '123456789', // typical dev initial token
25 timeout : 3600, // timeout is updated client sessin context creation
26 uuid : '', // uuid map with cookie or long term session access key
27 pingrate: 60 // Ping rate to check if server is still alive