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

12 lines
281 B
Plaintext

arangosh> db._routing.save({
........> url: "/hello/echo",
........> action: {
........> callback: "function(req,res) {res.statusCode=200; res.body='Hello'}"
........> }
........> });
{
"_id" : "_routing/604173195",
"_rev" : "604173195",
"_key" : "604173195"
}