Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

静态资源访问疑惑 #23

Closed
techbirds opened this issue Dec 13, 2013 · 1 comment
Closed

静态资源访问疑惑 #23

techbirds opened this issue Dec 13, 2013 · 1 comment

Comments

@techbirds
Copy link

前提:

app.use(express.static(__dirname + '/public'));

疑惑:

//localhost:3000/xx.jpg  ok
//localhost:3000/x/xx.jpg ok
//localhost:3000/x/x/xx.jpg error

前面两种资源文件都访问的到,可最后一种资源文件访问不到。请问下是什么原因?

@techbirds
Copy link
Author

�原来是自己写得路由把他拦截掉了,麻烦了。

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant