netlify-functions-workshop
netlify-functions-workshop copied to clipboard
Netlify Serverless Functions Workshop
A cookie's `Max-Age` is the number of _seconds_ until expiration, so the following code doesn't do what the author intended. ``` const hour = 3600000 const twoWeeks = 14 *...
Fix _instructor/use-cases/1-rest-api/functions/methods/index.js ```js const Create = require('./create') const Read = require('./read') const Update = require('./read') const Delete = require('./delete') const ReadAll = require('./readall') ```
This repo looks awesome. I was looking at the MongoDB example. Are there issues of the server not disconnecting when the function completes?
Is there an easy way for me to get cookies without having to grab them from the header and parsing them out myself?
https://github.com/DavidWells/netlify-functions-workshop/blob/ecb0aaf1c940bd1231ec286d897263a8ccd1ac53/lessons/use-cases/7-sending-emails/functions/sendgrid/sendgrid.js#L14