mirror of
https://github.com/hanzoai/next.js.git
synced 2026-10-30 14:46:38 +00:00
14 lines
243 B
JavaScript
14 lines
243 B
JavaScript
const express = require('express')
|
|
const path = require('path')
|
|
|
|
const app = express()
|
|
|
|
app.set('view engine', 'pug')
|
|
app.set('views', path.join(__dirname, 'views'))
|
|
|
|
app.get('*', (req, res) => {
|
|
res.render('index')
|
|
})
|
|
|
|
module.exports = app
|