Skip to content
This repository has been archived by the owner on Jun 17, 2022. It is now read-only.

Can there be an better explanation with the new way of doing things with axios? #207

Open
brijq opened this issue Nov 19, 2021 · 0 comments

Comments

@brijq
Copy link

brijq commented Nov 19, 2021

I understand that there is an thread speaking about

async function main(){
    await app.use(handler);
    let appInit = await app.start();
    let { state, send } = await connect(appInit.GCI)
  
    // query state, this is what would have been at http://localhost:3000/state before
    console.log(await state)

    // create tx (previously POST http://localhost:3000/txs)
    // console.log(await send({ foo: 'bar' }))
}

solution to replace http://localhost:3000/state before and POST http://localhost:3000/txs)

however I will like to request how can we still expose the endpoint via using axios with an endpoint with newer versions especially on POST http://localhost:3000/txs. In short possible to provide code snippets example of how can we implement
POST http://localhost:3000/txs with leaving an external endpoint with axios?

Please assist.

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant