Skip to content

Instantly share code, notes, and snippets.

@marcsolanadal
Created November 23, 2015 08:51
Show Gist options
  • Save marcsolanadal/1a4e2991171951db9d7c to your computer and use it in GitHub Desktop.
Save marcsolanadal/1a4e2991171951db9d7c to your computer and use it in GitHub Desktop.
{
method: 'GET',
path: '/Artifact/{id}/getFile',
config: {
handler: controllers.Artifact.getFile,
tags: ['api'],
description: 'gets the file of a given artifact using its id',
auth: false,
// auth: {
// strategy: 'standard',
// scope: 'user'
// },
validate: {
params: {
id: Joi.string()
.required()
.description('the id of the artifact')
}
}
}
},
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment