aps_webviewer_nodejs/routes/auth.js

15 lines
318 B
JavaScript
Raw Permalink Normal View History

2024-11-08 07:51:28 +01:00
const express = require('express');
const { getPublicToken } = require('../services/aps.js');
let router = express.Router();
router.get('/api/auth/token', async function (req, res, next) {
try {
res.json(await getPublicToken());
} catch (err) {
next(err);
}
});
module.exports = router;