Created
November 23, 2015 08:51
-
-
Save marcsolanadal/1a4e2991171951db9d7c to your computer and use it in GitHub Desktop.
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
{ | |
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