GET / fix 2
This commit is contained in:
parent
d33aef5b77
commit
755d3e33d1
|
@ -8,7 +8,7 @@ const cors = require("cors");
|
||||||
const app = express();
|
const app = express();
|
||||||
app.use(express.json());
|
app.use(express.json());
|
||||||
app.use(cors());
|
app.use(cors());
|
||||||
|
app.get('/', (req, res) => { res.send('Hello from Express!')});
|
||||||
const PORT = process.env.PORT || 5000;
|
const PORT = process.env.PORT || 5000;
|
||||||
|
|
||||||
app.listen(PORT, () => console.log(`The server has started on port: ${PORT}`));
|
app.listen(PORT, () => console.log(`The server has started on port: ${PORT}`));
|
||||||
|
@ -31,4 +31,3 @@ mongoose.connect(
|
||||||
// set up routes
|
// set up routes
|
||||||
|
|
||||||
app.use("/users", require("./routes/users"));
|
app.use("/users", require("./routes/users"));
|
||||||
app.get('/', (req, res) => { res.send('Hello from Express!')});
|
|
||||||
|
|
Loading…
Reference in New Issue