12 lines
285 B
JavaScript
Executable File
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;
|