/users/bob/counter\nconst username = await state("MyOtherObject").get("username");\n// Will execute this `state` query on an instance called "bob"\n// because the "MyOtherObject" object was mapped to the "myparam" parameter in the route ("/users/:myparam/counter")--\x3e\n\n\n
You can override the mapping by passing a second parameter to the state
function:
\x3c!--// > /users/bob/counter\nconst username = await state("MyOtherObject", "default").get("username");\n// Will execute this `state` query on the instance called "default"--\x3e
\nwrangler login
npm run build
wrangler publish
wrangler publish
\n app.toml
(also known as wrangler.toml).\n
PRs and issues are always welcome. Feel free to submit any issues you have at: https://github.com/hodgef/apiker/issues
\n\n
\n\n
\n\n\n \x3c!--
It allows you to create, preview and publish a wide variety of sites: from blogs to documentation sites, landing pages for your products and more.
--\x3e\n\n\n\n\n\n\n\n