Dispatch States (navigate)
Push States
Page Navigation / GET Request
// URI hash (fragment with hashtag) navigation
dispatch.navigateTo("#articles/824/hello-world", { test: "A get request" });
// URI path navigation
dispatch.navigateTo("/articles/824/hello-world", { test: "A get request" });// GET: example.se/?test=A+get+request#articles/824/hello-world
router.get('/articles/{id:[0-9]+}/{slug:[^/]+}', function({ http }) {
const id = http.vars.id.pop();
const slug = http.vars.slug.pop();
const test = http.request.get.get("test"); // Get the query string/get request "test"
console.log(`Article ID: ${id}, Slug: ${slug} and GET Request ${test}.`);
});POST Request
PUT and DELETE
What is Really Cool
Last updated