Last active
October 10, 2018 19:12
-
-
Save danhollick/dbe50ae011d720f3bddcae70d90382ea to your computer and use it in GitHub Desktop.
Call Middleware
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| 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