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 6 years ago by lacymorrow
    Endpoint Demo: https://movie-info-kdbpuifpuxt8.runkit.sh/?name=Oceans+Eleven

sign in to comment