Skip to content

Instantly share code, notes, and snippets.

@danhollick
Last active October 10, 2018 19:12
Show Gist options
  • Select an option

  • Save danhollick/dbe50ae011d720f3bddcae70d90382ea to your computer and use it in GitHub Desktop.

Select an option

Save danhollick/dbe50ae011d720f3bddcae70d90382ea to your computer and use it in GitHub Desktop.
Call Middleware
app.use('/', async function (req, res, next) {
let result = await figmaFileFetch(FigmaFileID).catch(error => console.log(error))
res.send(JSON.stringify(result))
})
app.listen(3001, console.log("Holy shit, I'm a server and I am listening on port 3001"))
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment