ya funciona al 80% el agent, es una pasada

This commit is contained in:
2025-06-07 02:00:43 -06:00
parent 9c16fb55fa
commit 40dcfe00e4
6 changed files with 170 additions and 277 deletions

View File

@@ -6,6 +6,7 @@ import {
buildConversation,
} from '../store/conversation';
export function registerConversationRoutes(app: Application, openWaUrl: string | undefined) {
app.get('/conversations', (req, res) => {
console.log('[routes] GET /conversations');
@@ -39,6 +40,7 @@ export function registerConversationRoutes(app: Application, openWaUrl: string |
app.delete('/conversations/:id', (req, res) => {
console.log(`[routes] DELETE /conversations/${req.params.id}`);
const deleted = deleteConversation(req.params.id);
console.log(`Conversation ${req.params.id} deleted: ${deleted}`);
res.json({ success: deleted });
});
}