GET / fix 2
This commit is contained in:
parent
1e252a8cde
commit
b88e897cf0
|
@ -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 New Issue