kfu-24-teacher/stubs/api/list/index.js

14 lines
306 B
JavaScript
Raw Permalink Normal View History

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-14 13:03:47 +03:00
router.get('/', keycloak.protect(), (req, res) => {
res.send(data);
// res.status(500).send({
// message: 'Internal server error'
// });
});