Skip to content
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.

Commit 207d104

Browse files
committedNov 28, 2019
Don't setup express view engine
View engine is not used.
1 parent 7ad04e9 commit 207d104

File tree

1 file changed

+0
-5
lines changed

1 file changed

+0
-5
lines changed
 

‎src/app.ts

Lines changed: 0 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,6 @@ import * as createError from "http-errors";
44
import * as knex from "knex";
55
import * as logger from "morgan";
66
import { Model } from "objection";
7-
import * as path from "path";
87
const morganBody = require("morgan-body");
98

109
import { createRouter as createApiRouter } from "./routes/api";
@@ -14,10 +13,6 @@ export async function createApp(): Promise<express.Application> {
1413
Model.knex(knex(config.get("knex")));
1514
const app = express();
1615

17-
// view engine setup
18-
app.set("views", path.join(__dirname, "views"));
19-
app.set("view engine", "pug");
20-
2116
app.use(logger("dev"));
2217
app.use(express.json());
2318
morganBody(app);

0 commit comments

Comments
 (0)
Please sign in to comment.