mirror of
https://github.com/DeviceFarmer/stf.git
synced 2026-04-17 23:53:25 +02:00
Add basic api unit. This unit will be responsible for providing all stf restful apis.
This commit is contained in:
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"}
|
||||
})
|
||||
}
|
||||
Reference in New Issue
Block a user