Skip to content

Commit

Permalink
stable
Browse files Browse the repository at this point in the history
  • Loading branch information
besoeasy committed Nov 21, 2024
1 parent 4fdd240 commit 1a73a8c
Showing 1 changed file with 6 additions and 5 deletions.
11 changes: 6 additions & 5 deletions index.js
Original file line number Diff line number Diff line change
Expand Up @@ -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,
Expand Down Expand Up @@ -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());
Expand Down

0 comments on commit 1a73a8c

Please sign in to comment.