From 10effd6887b722d8fe6a4fdb93602edeff2a7657 Mon Sep 17 00:00:00 2001 From: Peter Morgan Date: Mon, 23 Dec 2019 16:45:59 -0500 Subject: [PATCH] Removed old config files --- conf.json | 8 -------- configManager.js | 37 ------------------------------------- 2 files changed, 45 deletions(-) delete mode 100644 conf.json delete mode 100644 configManager.js diff --git a/conf.json b/conf.json deleted file mode 100644 index 5b3c852..0000000 --- a/conf.json +++ /dev/null @@ -1,8 +0,0 @@ -{ - "port": 7000, - "sessionSecret": "superDuperSecret for session stuff", - - "user": "github-user-used-with-api-account", - "clientID": "github client id", - "clientSecret": "clientSecret" -} \ No newline at end of file diff --git a/configManager.js b/configManager.js deleted file mode 100644 index 8c48aa9..0000000 --- a/configManager.js +++ /dev/null @@ -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; - } - }; \ No newline at end of file