Created
March 10, 2019 20:44
-
-
Save LazyFatArrow/d4723b50dd8f0ed8de76bb08e6d762b2 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
import Person from '../models/person.model' | |
export function create(data) { | |
return Person.create(data) | |
} | |
export function findAll() { | |
return Person.find() | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment