ph-server
v1.0.6
Published
simple server
Downloads
2
Readme
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)