arangosh> db._routing.save({
........> url: { match: "/hello/world" },
........> content: { contentType: "text/plain", body: "Match No 1"} });
{
"_id" : "_routing/7638",
"_key" : "7638",
"_rev" : "_VRep0Iu---"
}
arangosh> db._routing.save({
........> url: { match: "/hello/:name", constraint: { name: "/[a-z]+/" } },
........> content: { contentType: "text/plain", body: "Match No 2"} });
{
"_id" : "_routing/7642",
"_key" : "7642",
"_rev" : "_VRep0Iy---"
}
arangosh> db._routing.save({
........> url: { match: "/:something/world" },
........> content: { contentType: "text/plain", body: "Match No 3"} });
{
"_id" : "_routing/7645",
"_key" : "7645",
"_rev" : "_VRep0Iy--_"
}
arangosh> db._routing.save({
........> url: { match: "/hi/*" },
........> content: { contentType: "text/plain", body: "Match No 4"} });
{
"_id" : "_routing/7648",
"_key" : "7648",
"_rev" : "_VRep0I2---"
}
arangosh> require("internal").reloadRouting()