Spaces:
Sleeping
Sleeping
Update app.js
Browse files
app.js
CHANGED
|
@@ -71,7 +71,7 @@ function extractImagePrompt(text) {
|
|
| 71 |
* CLEANUP MEMORY
|
| 72 |
* Call this via Cron Job or manually to free up RAM
|
| 73 |
*/
|
| 74 |
-
app.
|
| 75 |
try {
|
| 76 |
const removed = StateManager.cleanupMemory();
|
| 77 |
res.json({ success: true, removedCount: removed, message: `Cleaned ${removed} inactive projects from memory.` });
|
|
|
|
| 71 |
* CLEANUP MEMORY
|
| 72 |
* Call this via Cron Job or manually to free up RAM
|
| 73 |
*/
|
| 74 |
+
app.get('/admin/cleanup', async (req, res) => {
|
| 75 |
try {
|
| 76 |
const removed = StateManager.cleanupMemory();
|
| 77 |
res.json({ success: true, removedCount: removed, message: `Cleaned ${removed} inactive projects from memory.` });
|