Category : ejs

When I type in the /posts/whatever at the end of the root URL it does not add what comes after the /posts to the console.log app.get("/posts/:userId", function(req, res) { console.log(req.params.userId); }); Edit: Heres the full code: //jshint esversion:6 const express = require("express"); const bodyParser = require("body-parser"); const ejs = require("ejs"); const homeStartingContent = "Lacus vel ..

Read more

This image shows that the image is uploaded, and fetched successfully but its nit displaying to the user, Can someone help This is the code that Have written // Downloads from s3 function getFileStream(key) { const downloadParams = { Key: key, Bucket: "icon-path-bucket" } return s3.getObject(downloadParams).createReadStream(); } exports.getFileStream = getFileStream and this is how I ..

Read more