const express = require('express');
const app = express();
const PORT = 5005;
// We can use routes method here for testing
app.get('/api', (req, res) => {
return res.status(200).json({
success: true,
message: 'You are ready to go'
});
});
// Start the server
app.listen(PORT, () => {
console.log(`App listening on port ${PORT}`);
});
0 Comments
Post a Comment