adding features

This commit is contained in:
orangecoding
2025-12-09 13:40:13 +01:00
parent 9a6ae5c30a
commit 89c93efa17
9 changed files with 78 additions and 17 deletions

View File

@@ -0,0 +1,12 @@
import restana from 'restana';
import getFeatures from '../../features.js';
const service = restana();
const featureRouter = service.newRouter();
featureRouter.get('/', async (req, res) => {
const features = getFeatures();
res.body = Object.assign({}, { features });
res.send();
});
export { featureRouter };