I_Jemin

Make Web Server path with Express

const express = require('express');
const app = express();
// Corespond to HTTP
// app.get()
// app.post()
// app.put();
// app.delete()
app.get('/',(req,res)=> {
res.send('Hello World');
});
app.get('/api/courses',(req,res) => {
res.send([1,2,3]);
});
app.listen(3000, ()=> console.log("Listening on port 3000"));