Spaces:
Sleeping
Sleeping
Commit Β·
00a8bf7
1
Parent(s): ab77bdb
fix api url
Browse files- front_end/app.js +2 -2
front_end/app.js
CHANGED
|
@@ -138,7 +138,7 @@ function startAnalysis() {
|
|
| 138 |
// βββββββββββββββββββββββββββββββββββββββββββββ
|
| 139 |
async function connectToBackend(repoUrl) {
|
| 140 |
try {
|
| 141 |
-
const response = await fetch('
|
| 142 |
method: 'POST',
|
| 143 |
headers: { 'Content-Type': 'application/json' },
|
| 144 |
body: JSON.stringify({ url: repoUrl }),
|
|
@@ -417,7 +417,7 @@ async function sendMessage() {
|
|
| 417 |
let fullMarkdown = '';
|
| 418 |
|
| 419 |
try {
|
| 420 |
-
const response = await fetch('
|
| 421 |
method: 'POST',
|
| 422 |
headers: { 'Content-Type': 'application/json' },
|
| 423 |
body: JSON.stringify({ message: text }),
|
|
|
|
| 138 |
// βββββββββββββββββββββββββββββββββββββββββββββ
|
| 139 |
async function connectToBackend(repoUrl) {
|
| 140 |
try {
|
| 141 |
+
const response = await fetch('/init-repo', {
|
| 142 |
method: 'POST',
|
| 143 |
headers: { 'Content-Type': 'application/json' },
|
| 144 |
body: JSON.stringify({ url: repoUrl }),
|
|
|
|
| 417 |
let fullMarkdown = '';
|
| 418 |
|
| 419 |
try {
|
| 420 |
+
const response = await fetch('/chat', {
|
| 421 |
method: 'POST',
|
| 422 |
headers: { 'Content-Type': 'application/json' },
|
| 423 |
body: JSON.stringify({ message: text }),
|