Skip to content

Commit 2e87657

Browse files
author
xiaolongXL
committed
update document
1 parent fa4691a commit 2e87657

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

doc/day1_express.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -393,7 +393,7 @@ module.exports = router;
393393

394394
我们可以在一个html文件里向端口发送get请求,首先要在访问http://localhost:3000下,端口能向浏览器输出此html,默认情况下,express是会输出pubblic文件夹下的index.html文件,在没有特别指明的情况下,所以注释掉:
395395

396-
//app.use('/', routes);
396+
app.use('/', routes);
397397

398398
这样在get请求的url为'/'时,express会找到pubblic文件夹;我们可以自定义路由:
399399

0 commit comments

Comments
 (0)