ya funciona al 80% el agent, es una pasada
This commit is contained in:
@@ -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 });
|
||||
});
|
||||
}
|
||||
Reference in New Issue
Block a user