Website for visualizing a persons github network.
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

42 lines
814 B

  1. const fileIO = require('./fileIO');
  2. const CONFIG_FILE_NAME = "conf.json";
  3. const config = fileIO.getFileAsJSON(CONFIG_FILE_NAME);
  4. module.exports=
  5. {
  6. getConfiguration: function()
  7. {
  8. return config;
  9. },
  10. syncToDisk: function()
  11. {
  12. fileIO.writeJSONToFile(CONFIG_FILE_NAME, config);
  13. },
  14. getPort: function()
  15. {
  16. return config.port;
  17. },
  18. getClientID: function()
  19. {
  20. return config.clientID;
  21. },
  22. getClientSecret: function()
  23. {
  24. return config.clientSecret;
  25. },
  26. getSessionSecret: function()
  27. {
  28. return config.sessionSecret;
  29. },
  30. getAPIUser: function()
  31. {
  32. return config.user;
  33. }
  34. };