app.get('/', function(req, res){
res.send('Ola Mundo');
});
In case of this simple code just to illustrate we have a function in nodejs with 2 parameters the requisition and the answer, I wanted to know if someone can explain me better h...
Is there any way to do that when the localhost:3000 , which is in the terminal, is pressed ctrl + click the browser is opened in the page in question ( localhost : 3000 ) ... this in a Javascript code:
console.log('\nServ...
Good afternoon ...
I have the following radio buttons:
<input type="radio" name="radio1" value="entrada"> Entrada
<input type="radio" name="radio1" value="saida"> Saida
I also have the following forms:
<div class="form-...
I have the following method:
//USER_POST
router.post('/user', (req,res,next) =>{
var obj = {name:req.body.des_name,
email:req.body.des_email,
endereco:req.body.des_endereco,
c...
Good afternoon,
I have a problem with the POST return in express, I wanted to make a user registry using the following code:
router.post('/user', (req,res,next) =>{
var obj = {name:req.body.des_name,
email:req.body.des...
I have a cruel doubt on nodeJs / Express, I'm pretty new to the language but what I need is to pass the id on a route so that it executes and returns a query.
I want to do in fragmented files, so I have a Routes file (with all routes) an API...
Using Node.JS I want to read a JavaScript script in a folder and return it.
It turns out that when I access the file through the browser, the code appears normally.
However, the script is not embedded in the HTML page using the <script>...
Hello, I'm trying to send a value of a form (id) that will be handled by the expression (I do not know the technical terms for this, if you can help me too), I've tried a lot but I can not pass the id parameter on action and do not access the app...
Hello, in my main code of my app, with the use of express, I'm trying to remove the "x-powered-by" header, and I've used both
app.disable("x-powered-by")
how much
app.set("x-powered-by", false)
In addition, I've already tried using the...
> > node index.js C:\Users\cpsep\Projetos\nodejs\semparar\node_modules\express\lib\express.js:107
> throw new Error('Most middleware (like ' + name + ') is no longer bundled with Express and must be installed separately. Please
>...