We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 9c2348d commit 10bf06cCopy full SHA for 10bf06c
1 file changed
backend/src/index.ts
@@ -41,12 +41,15 @@ app.use('/', router);
41
app.get('/', (_, res) => {
42
res.send('Hello, world!');
43
});
44
-app.get("/cache-info", async (_, res) => {
+app.get("/info", async (_, res) => {
45
res.json({
46
- size: cache.size, // # of entries
47
- maxSize: cache.maxSize, // max allowed
48
- calculatedSize: cache.calculatedSize, // total bytes used
49
- TTL: TTL
+ version: pkg.version,
+ cache: {
+ size: cache.size, // # of entries
+ maxSize: cache.maxSize, // max allowed
50
+ calculatedSize: cache.calculatedSize, // total bytes used
51
+ TTL: TTL
52
+ },
53
54
55
0 commit comments