« first day (1769 days earlier)      last day (2348 days later) » 

 
4 hours later…
 
2 hours later…
07:31
11 messages moved from GMTs
 
1 hour later…
 
2 hours later…
 
3 hours later…
@Queen k
@rlemon
Once they are on the /video/ url, there is the video player. How do I change the video while they are on the video url?
The array with object looks like this
var movies = [
{
id: 1,
link: "/video/",
title: "The eivom",
stars: "rating",
score: 8.4,
preview: "posterimage_.jpg",
file: "videos/movie.mp4"
}
1 message moved from JavaScript
14:01
@rlemon
Just one more thing. I am going ahaed with this solution:
app.get("/video/:id", function(req, res){
var vids = req.params.id;
res.render(path.resolve(__dirname + "/views/video" + vids));

});
But that doe not work. How to properly concatenate that argument?
1 message moved from JavaScript
app.get("/video/:id", function(req, res){
var vids = req.params.id;
res.render(path.resolve(__dirname + "/views/video" + vids));
});

Better not?
1 message moved from JavaScript
@Queen k
@rlemon ok heres my current thing.  i just attempted to "simply load a static file".  lets keep it simple.  so i read that if i use express.static and provide it a directory i can get those files at the client by using their paths relative to that first argument right.?   so here's my server

var express = require('express');
var app = express();

app.use(express.static('./dist'));


var server = app.listen(8080, function () {
   var {host, port} = server.address()
   console.log(`listening at http://${host}:${port}`)
1 message moved from JavaScript
 
2 hours later…
16:18
19 messages moved from GMTs
 
3 hours later…
 
1 hour later…

« first day (1769 days earlier)      last day (2348 days later) »