mirror of
https://github.com/openstf/stf
synced 2025-10-05 02:29:26 +02:00
Add user service and reorganize services. Messy commit but it's a start.
This commit is contained in:
parent
f9da1cb0bf
commit
7c0e04c4b4
12 changed files with 102 additions and 22 deletions
|
@ -92,6 +92,13 @@ module.exports = function(options) {
|
|||
res.render('index')
|
||||
})
|
||||
|
||||
app.get('/api/v1/user', function(req, res) {
|
||||
res.json({
|
||||
success: true
|
||||
, user: req.session.jwt
|
||||
})
|
||||
})
|
||||
|
||||
app.get('/api/v1/devices', function(req, res) {
|
||||
dbapi.loadDevices()
|
||||
.then(function(cursor) {
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue