arangosh> db._routing.save({
........> url: { match: "/hello/world" },
........> content: { contentType: "text/plain", body: "Match No 1"} });
{
"_id" : "_routing/100909",
"_key" : "100909",
"_rev" : "_XsBrVWy--_"
}
arangosh> db._routing.save({
........> url: { match: "/hello/:name", constraint: { name: "/[a-z]+/" } },
........> content: { contentType: "text/plain", body: "Match No 2"} });
{
"_id" : "_routing/100913",
"_key" : "100913",
"_rev" : "_XsBrVW2--_"
}
arangosh> db._routing.save({
........> url: { match: "/:something/world" },
........> content: { contentType: "text/plain", body: "Match No 3"} });
{
"_id" : "_routing/100916",
"_key" : "100916",
"_rev" : "_XsBrVW6--_"
}
arangosh> db._routing.save({
........> url: { match: "/hi/*" },
........> content: { contentType: "text/plain", body: "Match No 4"} });
{
"_id" : "_routing/100919",
"_key" : "100919",
"_rev" : "_XsBrVW6--B"
}
arangosh> require("internal").reloadRouting()