From 951224f0eab0cef5513cc3a5971b36dc7d174727 Mon Sep 17 00:00:00 2001 From: Cailean Finn Date: Thu, 20 Jun 2024 23:33:43 +0100 Subject: [PATCH] server --- .gitignore | 3 ++- public/json/wanderers.json | 3 --- server.js | 2 +- 3 files changed, 3 insertions(+), 5 deletions(-) delete mode 100644 public/json/wanderers.json diff --git a/.gitignore b/.gitignore index 99bc655..89394e4 100644 --- a/.gitignore +++ b/.gitignore @@ -1,3 +1,4 @@ /node_modules/ /package-lock.json -/.env \ No newline at end of file +/.env +/public/json/counter.json \ No newline at end of file diff --git a/public/json/wanderers.json b/public/json/wanderers.json deleted file mode 100644 index 23b2e5b..0000000 --- a/public/json/wanderers.json +++ /dev/null @@ -1,3 +0,0 @@ -{ - "count": 0 -} \ No newline at end of file diff --git a/server.js b/server.js index 9efc8b3..7dea951 100644 --- a/server.js +++ b/server.js @@ -9,7 +9,7 @@ require('dotenv').config(); const app = express(); const PORT = process.env.PORT || 3000; const GITEA_SECRET = process.env.GITEA_SECRET -const counterFilePath = path.join(__dirname, 'public/json/wanderers.json'); +const counterFilePath = path.join(__dirname, 'public/json/counter.json'); function readCounter() { const data = fs.readFileSync(counterFilePath)