Error code http://localhost:3000/public/resource/calendar.png Failed to load resource: the server responded with a status of 404 (Not Found)
I want web service. and I don't know why this error.
it works well in local file, but start with nodejs this error
And Here is my source
app.js
var express = require('express'),
app = express(),
server = require('http').createServer(app),
io = require('socket.io').listen(server);
server.listen(3000);
app.get('/', function(req, res){
res.sendFile(__dirname + '/index.html');
});
index.html (source too long)
this is error code
text-align: center;
background: url('./public/resource/calendar.png');
background-size: contain;
and png file path is D:\Hackathon\public\resource
and app.js, index path is D:\Hackathon
Help me plz