Skip to content

Instantly share code, notes, and snippets.

@Romain-P
Created October 9, 2017 13:35
Show Gist options
  • Select an option

  • Save Romain-P/8dcbcfc59de15e889ed4ce2ffdec61df to your computer and use it in GitHub Desktop.

Select an option

Save Romain-P/8dcbcfc59de15e889ed4ce2ffdec61df to your computer and use it in GitHub Desktop.
var api_url = 'http://localhost:8080';
export var config = {
api_url: api_url,
authentication: {
url: api_url + '/login/token',
clientId: 'clktime-app',
clientSecret: 'ortec-secret',
rsa: {
enabled: true,
publicKey: 'MIGfMA0GCSqGSIb3DQEBAQUAA4GNADCBiQKBgQCqAxzW3WEMz6UEi46IYir3M1S/GmUN6gqM1WDiksPMdPPSLX2o3iZreHWD+kFYoa12BxNZOZHGZ/7pyguROF823rwBp0vVC8ddKdDTbdDVWJVRRL7kBiG9uDL+rICwoIDGHLtEkSV1trIpvrY8dd7TEAsomnyNbLwFFxXGX5SFBQIDAQAB',
}
},
models: {
user: {
url: api_url + '/user/',
current: api_url + '/user/current',
current_meta_sync: api_url + '/user/current-meta-sync',
meta_sync: api_url + '/user/meta-sync/',
absence_days: api_url + '/user/absenceDays/{userId}/{year}'
},
activity: {
url: api_url + '/activity/',
children: api_url + '/activity/children/',
parents: api_url + '/activity/parents/'
},
role: {
url: api_url + '/role/'
},
stat: {
url: api_url + '/stat'
},
week: {
url: api_url + '/week',
parents_by_weeks: api_url + '/week/user/{user_id}/weekNumber/{number}/year/{year}',
current_parents_by_weeks: api_url + '/week/user/weekNumber/{number}/year/{year}'
}
}
};
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment