hmmm
This commit is contained in:
parent
ed45048920
commit
6067b47b10
@ -17,7 +17,7 @@ async function init () {
|
|||||||
|
|
||||||
router.get('/:name', async (req, res, next) => {
|
router.get('/:name', async (req, res, next) => {
|
||||||
let name = req.params.name
|
let name = req.params.name
|
||||||
if (name.length != 4) {
|
if (name.length > 5) {
|
||||||
try {
|
try {
|
||||||
let text = await fsp.readFile(path.join(root, 'index.html'))
|
let text = await fsp.readFile(path.join(root, 'index.html'))
|
||||||
res.send(text)
|
res.send(text)
|
||||||
|
Loading…
Reference in New Issue
Block a user