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