feat: removed unnecessary url functions

This commit is contained in:
Lion Arar 2025-10-10 15:40:49 -04:00
parent 8cf276deb0
commit 5a40c8febf
2 changed files with 0 additions and 7 deletions

View File

@ -88,7 +88,6 @@ const handleSend = async () => {
// Block to handle sending the url to n8n
const route = useRoute()
const sendUlr = chatbotService.sendUrl;
const sendPageContext = chatbotService.sendPageContext;
// Capture and send page context to n8n
const currentContext = computed(() =>
@ -104,7 +103,6 @@ watch(currentContext, async (ctx) => {
features: ctx.features,
path: ctx.path
}
await sendUlr(route.fullPath)
await sendPageContext(contextPayload)
},
{ immediate: true }

View File

@ -9,11 +9,6 @@ export const chatbotService = {
return response.data as Message;
},
sendUrl: async (url: string): Promise<string> => {
const response = await api.post("/chat/page-url", { url });
return response.data;
},
sendPageContext: async (context: contextObject): Promise<string> => {
const response = await api.post("/chat/context", context);
return response.data;