1
0
Fork 0
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:
Vishal Banthia 2015-12-02 21:23:57 +09:00
parent e0a45391ab
commit 0e8b308b6c
2 changed files with 1 additions and 8 deletions

View file

@ -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
}) })
} }

View file

@ -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) {