Created
April 7, 2015 01:57
-
-
Save jhaynie/b3dc157d197f3115614a to your computer and use it in GitHub Desktop.
Example for Arrow using File
This file contains 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
var Arrow = require('arrow'); | |
var API = Arrow.API.extend({ | |
group: 'file', | |
path: '/api/fileexample', | |
method: 'POST', | |
nickname: 'fileexample', | |
description: 'Example for file upload', | |
parameters: { | |
file: {description:'file to publish', type:'body'} | |
}, | |
action: function (req, resp, next) { | |
// req.params.file is your file object. | |
} | |
}); | |
module.exports = API; |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment