We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
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
Hi,
I can't seem to access my public directory when the URL includes the subdomain. For example,
http://sub.host.com/css/style.css
won't route me to my public directory. So right now I've been using middleware to redirect. in my app.js i have:
app.use(express.static(__dirname + '/public'));
app.use(express.static(__dirname
The text was updated successfully, but these errors were encountered:
I know this is old but this might help: `app.get('/', function (request, response) { response.sendFile(path.join(__dirname, '/views/index.html')); });
app.get('/hello', function (request, response) { response.end(site + ': "/hello"'); }); `
I did that for mine and I can then send an html file or just send a response.
Sorry, something went wrong.
No branches or pull requests
Hi,
I can't seem to access my public directory when the URL includes the subdomain. For example,
http://sub.host.com/css/style.css
won't route me to my public directory. So right now I've been using middleware to redirect. in my app.js i have:
app.use(express.static(__dirname
+ '/public'));The text was updated successfully, but these errors were encountered: