arangosh> db._routing.save({
........> url: { match: "/hello/world" },
........> content: { contentType: "text/plain", body: "Match No 1"} });
{
"_id" : "_routing/7716",
"_key" : "7716",
"_rev" : "_WcJRSbq--_"
}
arangosh> db._routing.save({
........> url: { match: "/hello/:name", constraint: { name: "/[a-z]+/" } },
........> content: { contentType: "text/plain", body: "Match No 2"} });
{
"_id" : "_routing/7720",
"_key" : "7720",
"_rev" : "_WcJRSbu--_"
}
arangosh> db._routing.save({
........> url: { match: "/:something/world" },
........> content: { contentType: "text/plain", body: "Match No 3"} });
{
"_id" : "_routing/7723",
"_key" : "7723",
"_rev" : "_WcJRSbu--B"
}
arangosh> db._routing.save({
........> url: { match: "/hi/*" },
........> content: { contentType: "text/plain", body: "Match No 4"} });
{
"_id" : "_routing/7726",
"_key" : "7726",
"_rev" : "_WcJRSbu--D"
}
arangosh> require("internal").reloadRouting()