12 new API endpoints
Build and Deploy / build (push) Successful in 1m44s
Build Release / build (push) Successful in 58s
Build and Deploy / deploy (push) Successful in 26s

This commit is contained in:
2026-06-16 20:51:18 +02:00
parent 5be3d127bb
commit 19c477aa05
26 changed files with 867 additions and 455 deletions
+18
View File
@@ -0,0 +1,18 @@
const express = require('express');
const router = express.Router();
function checkPalindrome(str) {
const clean = String(str).toLowerCase().replace(/[^a-z0-9]/g, '');
return clean === clean.split('').reverse().join('');
}
router.post('/', (req, res) => {
const { input } = req.body;
res.json({ ret: checkPalindrome(input) });
});
router.get('/:string', (req, res) => {
res.json({ ret: checkPalindrome(req.params.string) });
});
module.exports = router;