2024-12-07 13:43:07 +03:00
|
|
|
const router = require('express').Router();
|
|
|
|
|
|
|
|
module.exports = router;
|
|
|
|
|
|
|
|
const data = require('./data/list.json');
|
2024-12-14 13:03:47 +03:00
|
|
|
const keycloak = require('../keycloak');
|
2024-12-07 13:43:07 +03:00
|
|
|
|
2024-12-14 13:03:47 +03:00
|
|
|
router.get('/', keycloak.protect(), (req, res) => {
|
2024-12-07 13:43:07 +03:00
|
|
|
res.send(data);
|
|
|
|
// res.status(500).send({
|
|
|
|
// message: 'Internal server error'
|
|
|
|
// });
|
|
|
|
});
|