VulnMapAI
VulnMapAI copied to clipboard
Client-side JS Code to Communicate with Flask Endpoint
Is blocked by: https://github.com/davidalami/VulnMapAI/issues/10 and https://github.com/davidalami/VulnMapAI/issues/9
Is your feature request related to a problem? Please describe. Users should be able to send their questions and receive responses without refreshing the page.
Describe the solution you'd like Implement JS frontend functionality in the template to:
- Listen for button clicks.
- On button click, send an POST request with the user's question to /ask-chatgpt.
- Update the UI with ChatGPT's response in the dedicated section.
Describe alternatives you've considered A full-page reload could be considered but would degrade the user experience.
Additional context N/A