1
0
Fork 0
arangodb/Documentation/Examples/MOD_08b_routingCreateRouteT...

18 lines
379 B
Plaintext

arangosh> db._routing.save({
........> middleware: [
........> {
........> url: {
........> match: "/subdirectory/*"
........> },
........> action: {
........> do: "db://OwnMiddlewareTest/logRequest"
........> }
........> }
........> ]
........> });
{
"_id" : "_routing/612299659",
"_rev" : "612299659",
"_key" : "612299659"
}