Most voted "restify" questions
6 questions
Sort by count of
-
2
votes0
answers43
viewsSend post parameter to restify
I’m trying to send parameter to nodejs with restify, but it’s always coming undefined I’m sending it sort of like this: $.ajax({ url : 'http://localhost:8080/api', type: 'post', dataType: 'json',…
-
1
votes1
answer144
viewsEquivalent to sendFile in restify
I would like to show a page when calling a route on Node using restify No express use like this: app.get('/', (req, res)=>{ res.sendFile(__dirname+'/index.html') }) What it would be like in…
-
0
votes1
answer1101
viewsConnection being refused
Following this tutorial of Vedovelli about Ode with restify and mysql, I implemented on the server with pm2. Only after a few days the connection began to be refused Is showing that message: errno:…
-
0
votes1
answer88
viewsPrefix in Node restify
I have my module in the nodejs and I would like to have a prefix so I don’t have to repeat every time the beginning: For example, in the file route js const db = require('../services') const routes…
-
0
votes1
answer101
viewsAllow https source access
I developed a Node api using restify only for real-time warnings, but came across a https problem: If the origin of the request comes from an https site the api does not work My Cors on the Node is…
-
-3
votes1
answer24
viewsEquivalent of res.download express in restify
I would like to send a file to the browser to download In express I do so: app.get('/apk', (req, res) => { res.contentType('application/vnd.android.package-archive');…