Skip to content

Instantly share code, notes, and snippets.

@jhaynie
Created April 7, 2015 01:57
Show Gist options
  • Save jhaynie/b3dc157d197f3115614a to your computer and use it in GitHub Desktop.
Save jhaynie/b3dc157d197f3115614a to your computer and use it in GitHub Desktop.
Example for Arrow using File
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