mirror of
https://github.com/Priyatham-sai-chand/Locaft-backend.git
synced 2026-10-05 08:51:33 -07:00
GET / fix 2
This commit is contained in:
parent
1e252a8cde
commit
b88e897cf0
1 changed files with 1 additions and 2 deletions
|
|
@ -8,7 +8,7 @@ const cors = require("cors");
|
|||
const app = express();
|
||||
app.use(express.json());
|
||||
app.use(cors());
|
||||
|
||||
app.get('/', (req, res) => { res.send('Hello from Express!')});
|
||||
const PORT = process.env.PORT || 5000;
|
||||
|
||||
app.listen(PORT, () => console.log(`The server has started on port: ${PORT}`));
|
||||
|
|
@ -31,4 +31,3 @@ mongoose.connect(
|
|||
// set up routes
|
||||
|
||||
app.use("/users", require("./routes/users"));
|
||||
app.get('/', (req, res) => { res.send('Hello from Express!')});
|
||||
|
|
|
|||
Loading…
Reference in a new issue