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