Browse Source

Removed old config files

pull/18/head
Peter Morgan 5 years ago
parent
commit
10effd6887
2 changed files with 0 additions and 45 deletions
  1. +0
    -8
      conf.json
  2. +0
    -37
      configManager.js

+ 0
- 8
conf.json View File

@ -1,8 +0,0 @@
{
"port": 7000,
"sessionSecret": "superDuperSecret for session stuff",
"user": "github-user-used-with-api-account",
"clientID": "github client id",
"clientSecret": "clientSecret"
}

+ 0
- 37
configManager.js View File

@ -1,37 +0,0 @@
const fileIO = require('./fileIO');
const CONFIG_FILE_NAME = "conf.json";
const config = fileIO.getFileAsJSON(CONFIG_FILE_NAME);
module.exports=
{
getConfiguration: function()
{
return config;
},
syncToDisk: function()
{
fileIO.writeJSONToFile(CONFIG_FILE_NAME, config);
},
getPort: function()
{
return config.port;
},
getClientID: function()
{
return config.clientID;
},
getClientSecret: function()
{
return config.clientSecret;
},
getSessionSecret: function()
{
return config.sessionSecret;
}
};

Loading…
Cancel
Save