public comment
This commit is contained in:
7
app.js
7
app.js
@@ -6,7 +6,6 @@ const configs = require("./configs");
|
||||
const chalk = require("chalk");
|
||||
const helmet = require("helmet");
|
||||
const morgan = require("morgan");
|
||||
const path = require("path");
|
||||
const cors = require("cors");
|
||||
|
||||
app.use(express.urlencoded({ extended: true }));
|
||||
@@ -33,9 +32,9 @@ mongoose
|
||||
app.use(express.static("build"));
|
||||
|
||||
// React uygulamasının web arayüzüne erişim
|
||||
app.get("/react-ui", (req, res) => {
|
||||
res.sendFile(path.join(__dirname, "public", "index.html"));
|
||||
});
|
||||
//app.get("/react-ui", (req, res) => {
|
||||
// res.sendFile(path.join(__dirname, "public", "index.html"));
|
||||
//});
|
||||
|
||||
// Device Set Route
|
||||
app.use("/api/get", require("./route/device.get.route"));
|
||||
|
||||
Reference in New Issue
Block a user