Skip to content

Instantly share code, notes, and snippets.

@JustinDFuller
Created July 21, 2019 00:43
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 JustinDFuller/8e68f20b717cae8604c406819eaba364 to your computer and use it in GitHub Desktop.
Save JustinDFuller/8e68f20b717cae8604c406819eaba364 to your computer and use it in GitHub Desktop.
Controllers
import { models } from './models'
export const controllers = {
user: {
get({ email }) {
return models.user.get({
where: {
email
},
limit: 1
})
}
}
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment