1.0.6 • Published 3 years ago
ph-server v1.0.6
example:
const Application = require("./index")
const router = require("./router")
const app = new Application()
app
.config({
unknowPage:"/404.html"
})
.cors()
.index("./static/index.html")
.redirect("/public/*.html","/404.html")
.static("/public","./static",true)
.static("/*.html","./static/*.html")
.use(router.middleware())
.listen(3004)