Created
September 19, 2016 18:30
-
-
Save rdegges/8f8da99784cc46d41fc142321a882002 to your computer and use it in GitHub Desktop.
express-stormpath-s3 sync file example
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.get('/sync', stormpath.loginRequired, (req, res, next) => { | |
req.user.syncFiles(err => { | |
if (err) return next(err); | |
res.send('files synced!'); | |
}); | |
}); |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment