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 ($location, $window) {
10 // console.log ("URL="+ $location.url() + " Query=" + location.href+ " window=" + document.referrer);
13 paths: { // Warning paths should end with /
15 avatar: 'images/avatars/',
16 audio : 'images/audio/',
17 appli : 'images/appli/'
20 myapi: { // Warning paths should end with /
21 token : '/api/myplugin/xxxx'
24 session: { // Those data are updated by session service
25 create : '/api/token/create',
26 refresh : '/api/token/refresh',
27 check : '/api/token/check',
28 reset : '/api/token/reset',
29 ping : '/api/token/check',
30 initial : '123456789', // typical dev initial token
31 timeout : 3600, // timeout is updated client sessin context creation
32 pingrate: 60, // Ping rate to check if server is still alive
33 uuid : '', // uuid map with cookie or long term session access key
34 token : '' // will be returned from authentication