everydaycats commited on
Commit
1dee96d
·
verified ·
1 Parent(s): 5b27012

Update app.js

Browse files
Files changed (1) hide show
  1. app.js +1 -1
app.js CHANGED
@@ -226,7 +226,7 @@ app.post('/poll', async (req, res) => {
226
  // Endpoint: /cleanup
227
  // Memory management: Clears old JWT secrets from RAM that haven't been used recently.
228
  // Does NOT delete from Firebase.
229
- app.post('/cleanup', (req, res) => {
230
  const THRESHOLD = 1000 * 60 * 60; // 1 Hour
231
  const now = Date.now();
232
  let cleanedCount = 0;
 
226
  // Endpoint: /cleanup
227
  // Memory management: Clears old JWT secrets from RAM that haven't been used recently.
228
  // Does NOT delete from Firebase.
229
+ app.get('/cleanup', (req, res) => {
230
  const THRESHOLD = 1000 * 60 * 60; // 1 Hour
231
  const now = Date.now();
232
  let cleanedCount = 0;