arangosh> db._routing.save({
........> url: { match: "/hello/world" },
........> content: { contentType: "text/plain", body: "Match No 1"} });
{
"_id" : "_routing/7812",
"_key" : "7812",
"_rev" : "_V8R07aG--_"
}
arangosh> db._routing.save({
........> url: { match: "/hello/:name", constraint: { name: "/[a-z]+/" } },
........> content: { contentType: "text/plain", body: "Match No 2"} });
{
"_id" : "_routing/7816",
"_key" : "7816",
"_rev" : "_V8R07aG--B"
}
arangosh> db._routing.save({
........> url: { match: "/:something/world" },
........> content: { contentType: "text/plain", body: "Match No 3"} });
{
"_id" : "_routing/7819",
"_key" : "7819",
"_rev" : "_V8R07aK--_"
}
arangosh> db._routing.save({
........> url: { match: "/hi/*" },
........> content: { contentType: "text/plain", body: "Match No 4"} });
{
"_id" : "_routing/7822",
"_key" : "7822",
"_rev" : "_V8R07aK--B"
}
arangosh> require("internal").reloadRouting()