Clone and edit this document
Runkit
Runkit
home page
user forum
new notebook
clone notebook
download notebook
support & documentation
log in
sign up
new notebook
help & feedback
clone this notebook
download this notebook
Sign In
Sign Up
runkit endpoint with querystrings
node v18.11.0
version:
2.0.0
endpoint
share
tweet
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