mirror of
https://github.com/semaphoreui/semaphore.git
synced 2025-01-23 19:31:03 +01:00
13 lines
230 B
JavaScript
13 lines
230 B
JavaScript
|
|
||
|
exports.router = function (app, template) {
|
||
|
app.get('/profile', getProfile)
|
||
|
}
|
||
|
|
||
|
function getProfile (req, res) {
|
||
|
res.send({
|
||
|
_id: req.user._id,
|
||
|
name: req.user.name,
|
||
|
username: req.user.username,
|
||
|
email: req.user.email
|
||
|
})
|
||
|
}
|