runkit endpoint with querystrings

node v18.11.0
version: 2.0.0
endpointsharetweet
const url = require('url'); exports.endpoint = function(request, response) { let paramsString = `${request.url}`; let parsedUrl = url.parse(paramsString, true); let account = parsedUrl.query['account']; response.end(`${account}`); }
Created from: https://runkit.com/docs/endpoint
Loading…

no comments

    sign in to comment