1const methodOverride = require('method-override');
2const { url } = require("inspector");
3server.use(methodOverride('_method'));
4
5
6// middleware
7server.use(express.static("./public"));
8server.set("view engine", "ejs");
9server.use(express.urlencoded({ extended: true }));
1server.use(express.static('./public'));
2server.use(express.json());
3server.use(express.urlencoded({extended: true}));
4const methodOverride = require('method-override');
5server.use(methodOverride('_method'));
6server.set('view engine', 'ejs');