20 new API endpoints
Build and Deploy / build (push) Successful in 30s
Build Release / build (push) Successful in 22s
Build and Deploy / deploy (push) Successful in 26s

This commit is contained in:
2026-06-17 06:24:22 +02:00
parent 19c477aa05
commit 56bd3ea604
22 changed files with 856 additions and 0 deletions
+11
View File
@@ -0,0 +1,11 @@
const express = require('express');
const router = express.Router();
router.post('/', (req, res) => {
const { input } = req.body;
if (!Array.isArray(input) || input.length === 0)
return res.status(400).json({ error: 'input must be a non-empty array' });
res.json({ ret: input.reduce((acc, n) => acc + Number(n), 0) / input.length });
});
module.exports = router;