forked from f0ck/f0ckv2
11 lines
249 B
JavaScript
11 lines
249 B
JavaScript
import router from "../router";
|
|
import fs from "fs";
|
|
|
|
const tpl = fs.readFileSync("./views/index.html", "utf-8");
|
|
|
|
router.get(/^\/(page\/[0-9]+)?$/, async (req, res) => {
|
|
res
|
|
.writeHead(200, { 'Content-Type': 'text/html' })
|
|
.end(tpl);
|
|
});
|