Skip to content

Instantly share code, notes, and snippets.

@GregoryHlavac
Created April 20, 2014 05:45
Show Gist options
  • Save GregoryHlavac/11106105 to your computer and use it in GitHub Desktop.
Save GregoryHlavac/11106105 to your computer and use it in GitHub Desktop.
app.use('/api', sleep.createEndpoint(
[
{
model: db.Project,
options: {
walk_depth: 3
},
routes: {
get: [
Sleep.Scaffolding.Pagination
]
},
associationOptions: {
releases: {
crashes: {
filter: {
include: ['signature']
},
reports: {
}
}
}
}
},
{
model: db.User,
filter: {
exclude: ['password']
}
}
]
)
);
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment