students.put.ts 284 Bytes
Newer Older
chinguyen's avatar
chinguyen committed
1 2 3 4 5 6
import { Request, Response } from 'express'
import { StudentDao } from '../../dao/_index'

export function updateUser(req: Request, res: Response) {
    return StudentDao.updateUser(req.params.code, req.body).then(res.status(200).json({success: true, message: 'update successful'}))
}