So, how can I serve the video in the same way as I am serving the file, i.e. defining a route for that. right now, I am just giving the path of the video in the src attribute of video tag On Tuesday, 13 November 2012 05:27:00 UTC+5:30, ryandesign wrote: > > > On Nov 12, 2012, at 16:32, Nathan Rajlich > <[email protected]<javascript:>> > wrote: > > > Are you implementing the static file serving yourself? > > The only route defined in app.js is: > > app.get('/', function (req, res) { > res.sendfile(__dirname + '/index.html'); > }); > > Therefore "/" is the only route that will be served. If you also want to > serve "/test.mp4", then you will need to define a route for that, or hook > up some static middleware as Nate said. > > >
-- Job Board: http://jobs.nodejs.org/ Posting guidelines: https://github.com/joyent/node/wiki/Mailing-List-Posting-Guidelines You received this message because you are subscribed to the Google Groups "nodejs" group. To post to this group, send email to [email protected] To unsubscribe from this group, send email to [email protected] For more options, visit this group at http://groups.google.com/group/nodejs?hl=en?hl=en
