-
Notifications
You must be signed in to change notification settings - Fork 10
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
docs: specify version for attachment functionality #72
Conversation
README.md
Outdated
@@ -96,7 +96,8 @@ app.post( | |||
express.json(), | |||
// Decrypt the submission and attachments | |||
async function (req, res, next) { | |||
const submission = formsg.crypto.decryptWithAttachments( | |||
// Note that this function is only available from version 0.9.0 onwards |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I think this line is not necessary, as it's already documented below. I'd also like this section to be a "quick start" that is as short, friendly and un-intimidating as possible. Do you think we can simplify further, say by combining /submissions
with /submissions-attachment
?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
addressed in 3c49a9c, could you help take a look to see if it makes sense please?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
pre-approving documentation changes
got some final feedback from @karrui and @LoneRifle, thank you for the inputs! |
Adds notes to the README to clarify that
decryptWithAttachments
is only available from v0.9.0 onwards, and also adds a missingawait
to the example code.