Skip to content

Instantly share code, notes, and snippets.

@petreboy14
Created August 28, 2013 17:46
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save petreboy14/6368996 to your computer and use it in GitHub Desktop.
Save petreboy14/6368996 to your computer and use it in GitHub Desktop.
var routes = {
'/employees': {
restrictTo: 'guest',
handler: employeesApi.employees,
validations: {
limit: expressJoi.Joi.types.Number().integer().min(1).max(25),
offset: expressJoi.Joi.types.Number().integer().min(0).max(25),
name: expressJoi.Joi.types.String().alphanum().min(2).max(25
}
},
// ....
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment