You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
18 lines
295 B
18 lines
295 B
const express = require('express')
|
|
const app = express()
|
|
|
|
app.use(express.urlencoded({extended:false}));
|
|
|
|
const showItems = (req, res)=>{
|
|
res.render('show.ejs')
|
|
}
|
|
|
|
app.get('/', showItems);
|
|
app.post('/', (req, res)=>{
|
|
res.send(req.body)
|
|
})
|
|
|
|
app.listen(3003, ()=>{
|
|
console.log('listening');
|
|
})
|