From 1a73a8c801e0f69f31ae0df776770c7c60eeed70 Mon Sep 17 00:00:00 2001 From: besoeasy Date: Fri, 22 Nov 2024 04:30:15 +0530 Subject: [PATCH] stable --- index.js | 11 ++++++----- 1 file changed, 6 insertions(+), 5 deletions(-) diff --git a/index.js b/index.js index eb2348d..2576468 100755 --- a/index.js +++ b/index.js @@ -2,6 +2,12 @@ require("dotenv").config(); +const crypto = require("crypto"); + +// Helpers +function generateSHA256Hash(inputString) { + return crypto.createHash("sha256").update(inputString).digest("hex"); +} const { version } = require("./package.json"); const { getGlobalStats, @@ -262,14 +268,9 @@ process.once("SIGINT", () => { const express = require("express"); const cors = require("cors"); const path = require("path"); -const crypto = require("crypto"); const app = express(); -// Helpers -function generateSHA256Hash(inputString) { - return crypto.createHash("sha256").update(inputString).digest("hex"); -} // Middleware app.use(cors());