const methodOverride = require('method-override');
const { url } = require("inspector");
server.use(methodOverride('_method'));
// middleware
server.use(express.static("./public"));
server.set("view engine", "ejs");
server.use(express.urlencoded({ extended: true }));
server.use(express.static('./public'));
server.use(express.json());
server.use(express.urlencoded({extended: true}));
const methodOverride = require('method-override');
server.use(methodOverride('_method'));
server.set('view engine', 'ejs');