Last active
December 6, 2020 22:02
-
-
Save soonsam123/2d7875d961477d126a4dcaec2e93b849 to your computer and use it in GitHub Desktop.
NodeJS API-Part 5 / Model/Router/Controller structure
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
module.exports = { | |
getAll(req, res) { | |
res.send({ | |
id: 1, | |
name: "KARATÊ DOJO", | |
teacher: "JACKSON TANAKA", | |
}); | |
}, | |
}; | |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment