Would you like to clone this notebook?

When you clone a notebook you are able to make changes without affecting the original notebook.

Cancel

movie-info

node v8.17.0
version: 3.0.3
endpointsharetweet
const movieInfo = require('movie-info') const movie = 'Crash' movieInfo(movie) .then(console.log) exports.endpoint = async (request, response) => { // parse GET parameters for ?movie=...&year=... const url = require('url') const req = url.parse(request.url, true) let { name, year } = req.query response.end(JSON.stringify(await movieInfo(name || movie, year))) }
Loading…

1 comment

  • posted 7 years ago by lacymorrow
    Endpoint Demo: https://movie-info-kdbpuifpuxt8.runkit.sh/?name=Oceans+Eleven

sign in to comment