-
Notifications
You must be signed in to change notification settings - Fork 53
Open
Description
I am trying to pass the request parameter to the URL. But it is returning undefined.
var express = require('express');
var deeplink = require('node-deeplink');
var app = express();
let anuncioId;
app.get(
'/anuncio/:codigo',
function (request, response, next) {
anuncioId = request.params.codigo;
console.log('primeiro ' + anuncioId)
return next();
},
deeplink({
url: detroca.app://detroca/anuncio/${anuncioId}
,
fallback: 'https://www.detroca.com.br',
android_package_name: 'com.app.detroca',
title: Anuncio: ${anuncioId}
})
);
app.listen(3000);
console.log('deeplink service listening on port 3000');
Metadata
Metadata
Assignees
Labels
No labels