health check route added
This commit is contained in:
@@ -18,6 +18,9 @@ const http = require("http");
|
||||
const server = http.createServer(app);
|
||||
const { socketIOServerInit } = require("./socket");
|
||||
|
||||
app.get("/health-check", (req, res, next) => {
|
||||
res.status(200).send("OK");
|
||||
});
|
||||
app.use(cors({ origin: "http://localhost:5173", credentials: true }));
|
||||
app.use(bodyParser.json());
|
||||
app.use((req, res, next) => {
|
||||
|
||||
Reference in New Issue
Block a user