mirror of
https://github.com/hanzoai/next.js.git
synced 2026-10-30 14:46:38 +00:00
Port the unit tests from https://github.com/vercel/nft/tree/941be1cb3b9d38fbc99a8a6f07af568a64ed0f12/test/unit
17 lines
319 B
JavaScript
17 lines
319 B
JavaScript
const express = require('express')
|
|
const path = require('path')
|
|
|
|
const app = express()
|
|
|
|
function customImplementation() {}
|
|
|
|
app.engine('pug', customImplementation)
|
|
app.set('view engine', 'pug')
|
|
app.set('views', path.join(__dirname, 'views'))
|
|
|
|
app.get('*', (req, res) => {
|
|
res.render('index')
|
|
})
|
|
|
|
module.exports = app
|