diff --git a/app/app.view.ts b/app/app.view.ts index 4961a43..a4b1b9c 100644 --- a/app/app.view.ts +++ b/app/app.view.ts @@ -14,10 +14,14 @@ namespace $.$$ { const structure = JSON.stringify( this.fetch_by_number( number ) ) const params = new URLSearchParams({ structure }) - const url = `https://labs.mpds.io/predict?${ params.toString() }` + const url = `https://labs.mpds.io/predict` const prediction = this.$.$mol_wire_sync( this ).$.$mol_fetch.success( url, { method: 'post', + headers: { + "Content-Type": "application/x-www-form-urlencoded", + }, + body: params.toString(), } ).json() ?? {} as any return prediction