mirror of
https://github.com/openstf/stf
synced 2025-10-04 18:29:17 +02:00
change /app/api/v1/user -> /api/v1/me
This commit is contained in:
parent
e0a45391ab
commit
0e8b308b6c
2 changed files with 1 additions and 8 deletions
|
@ -5,6 +5,6 @@ module.exports = {
|
||||||
function getCurrentUser(req, res) {
|
function getCurrentUser(req, res) {
|
||||||
res.json({
|
res.json({
|
||||||
success: true
|
success: true
|
||||||
, user: {"name": "dummy"}
|
, user: req.user
|
||||||
})
|
})
|
||||||
}
|
}
|
||||||
|
|
|
@ -124,13 +124,6 @@ module.exports = function(options) {
|
||||||
res.send('var GLOBAL_APPSTATE = ' + JSON.stringify(state))
|
res.send('var GLOBAL_APPSTATE = ' + JSON.stringify(state))
|
||||||
})
|
})
|
||||||
|
|
||||||
app.get('/app/api/v1/user', function(req, res) {
|
|
||||||
res.json({
|
|
||||||
success: true
|
|
||||||
, user: req.user
|
|
||||||
})
|
|
||||||
})
|
|
||||||
|
|
||||||
app.get('/app/api/v1/group', function(req, res) {
|
app.get('/app/api/v1/group', function(req, res) {
|
||||||
dbapi.loadGroup(req.user.email)
|
dbapi.loadGroup(req.user.email)
|
||||||
.then(function(cursor) {
|
.then(function(cursor) {
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue