refactor(frontend): point frontend at rust stealth-api

This commit is contained in:
LORDBABUINO
2026-05-12 02:44:42 -03:00
parent 86e0b40854
commit 9e4df8ec3c
2 changed files with 6 additions and 2 deletions
+5 -1
View File
@@ -1,5 +1,9 @@
export const analyzeWallet = async (descriptor) => {
const res = await fetch(`/api/wallet/scan?descriptor=${encodeURIComponent(descriptor)}`)
const res = await fetch('/api/wallet/scan', {
method: 'POST',
headers: { 'Content-Type': 'application/json' },
body: JSON.stringify({ descriptor }),
})
if (!res.ok) throw new Error('Analysis failed')
return res.json()
}
+1 -1
View File
@@ -5,7 +5,7 @@ export default defineConfig({
plugins: [react()],
server: {
proxy: {
'/api': 'http://localhost:8080'
'/api': 'http://localhost:20899'
}
}
})