Created
July 6, 2020 13:15
-
-
Save kianaditya/00c4dacde538ff7c5cfeb6fd1fa599aa to your computer and use it in GitHub Desktop.
This file contains hidden or 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
const queries = require('../models/queries') | |
const show = async (req, res) => { | |
const email = req.user.email | |
const user = await queries.getUser(email) | |
res.status(200).send(user) | |
} | |
module.exports = { show } |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment