mirror of
https://github.com/openstf/stf
synced 2025-10-04 10:19:30 +02:00
Add basic api unit. This unit will be responsible for providing all stf restful apis.
This commit is contained in:
parent
7ea7871ec0
commit
41f306a7f0
7 changed files with 172 additions and 0 deletions
10
lib/units/api/controllers/user.js
Normal file
10
lib/units/api/controllers/user.js
Normal file
|
@ -0,0 +1,10 @@
|
|||
module.exports = {
|
||||
getCurrentUser: getCurrentUser
|
||||
};
|
||||
|
||||
function getCurrentUser(req, res) {
|
||||
res.json({
|
||||
success: true
|
||||
, user: {"name": "dummy"}
|
||||
})
|
||||
}
|
Loading…
Add table
Add a link
Reference in a new issue