Files
helsinki/Pt12/part12-containers-applications/todo-app/todo-backend/routes/statistics.js
T
2024-09-30 15:32:50 +03:00

12 lines
285 B
JavaScript
Executable File

const express = require("express");
const router = express.Router();
const { getAsync } = require("../redis/index");
/* GET todos listing. */
router.get("/", async (_, res) => {
const statistics = await getAsync("added_todos");
res.send(statistics);
});
module.exports = router;