We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 7ad04e9 commit 207d104Copy full SHA for 207d104
src/app.ts
@@ -4,7 +4,6 @@ import * as createError from "http-errors";
4
import * as knex from "knex";
5
import * as logger from "morgan";
6
import { Model } from "objection";
7
-import * as path from "path";
8
const morganBody = require("morgan-body");
9
10
import { createRouter as createApiRouter } from "./routes/api";
@@ -14,10 +13,6 @@ export async function createApp(): Promise<express.Application> {
14
13
Model.knex(knex(config.get("knex")));
15
const app = express();
16
17
- // view engine setup
18
- app.set("views", path.join(__dirname, "views"));
19
- app.set("view engine", "pug");
20
-
21
app.use(logger("dev"));
22
app.use(express.json());
23
morganBody(app);
0 commit comments