socurity/api/identity.js

17 lines
349 B
JavaScript
Raw Normal View History

2020-02-26 16:03:38 -05:00
const express = require('express');
const { Router } = express;
const router = new Router()
2020-02-26 22:02:18 -05:00
const identity = require('../src/identity.js')
router.get('/', async (req, res) => {
res.json({
identities: await identity.get.all()
});
});
2020-02-26 16:03:38 -05:00
router.get('/:guid', (req, res) => {
2020-02-26 22:02:18 -05:00
console.log(req.param.guid);
res.json({});
2020-02-26 16:03:38 -05:00
})
module.exports = router;