Commit e36fa79
committed
fix: redirect /demo to /demo/ to resolve 404 without trailing slash
Accessing /demo without a trailing slash returned 404 because
koa-static treats it as a file request rather than serving
demo/index.html. Add a redirect from /demo to /demo/.
Fixes #2751 parent 4276899 commit e36fa79
1 file changed
Lines changed: 5 additions & 0 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
61 | 61 | | |
62 | 62 | | |
63 | 63 | | |
| 64 | + | |
| 65 | + | |
| 66 | + | |
| 67 | + | |
| 68 | + | |
64 | 69 | | |
65 | 70 | | |
66 | 71 | | |
| |||
0 commit comments