mirror of
https://codeberg.org/ashley/poke.git
synced 2024-12-01 07:37:24 +01:00
remove view engine
This commit is contained in:
parent
4c9886b03f
commit
2a457d586a
1 changed files with 2 additions and 2 deletions
|
@ -65,8 +65,8 @@ initlog("Loaded express.js");
|
||||||
app.engine("html", require("ejs").renderFile);
|
app.engine("html", require("ejs").renderFile);
|
||||||
app.use(modules.express.urlencoded({ extended: true })); // for parsing application/x-www-form-urlencoded
|
app.use(modules.express.urlencoded({ extended: true })); // for parsing application/x-www-form-urlencoded
|
||||||
app.use(modules.useragent.express());
|
app.use(modules.useragent.express());
|
||||||
|
app.use(modules.express.json()); // for parsing application/json
|
||||||
|
|
||||||
app.set("view engine", "html");
|
|
||||||
|
|
||||||
const renderTemplate = async (res, req, template, data = {}) => {
|
const renderTemplate = async (res, req, template, data = {}) => {
|
||||||
res.render(
|
res.render(
|
||||||
|
|
Loading…
Reference in a new issue