mirror of
https://github.com/LORDBABUINO/stealth.git
synced 2026-06-11 23:03:30 -07:00
refactor(frontend): point frontend at rust stealth-api
This commit is contained in:
@@ -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()
|
||||
}
|
||||
|
||||
@@ -5,7 +5,7 @@ export default defineConfig({
|
||||
plugins: [react()],
|
||||
server: {
|
||||
proxy: {
|
||||
'/api': 'http://localhost:8080'
|
||||
'/api': 'http://localhost:20899'
|
||||
}
|
||||
}
|
||||
})
|
||||
|
||||
Reference in New Issue
Block a user