You cannot select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

12 lines
249 B
JavaScript

const router = require('express-promise-router')()
const db = require('../db')
router.get('/:uuid', async (req, res)=>{
const user = await db.user.findById(req.params.uuid)
if(!user) return 'next'
res.json(user)
})
module.exports = router;