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