Updated test example with real parameters

This commit is contained in:
Mike Crowe
2017-09-13 11:49:44 -04:00
parent 4229b17124
commit 1e8c96d196

View File

@@ -34,7 +34,14 @@ class Server {
}
console.dir(instance.name);
});
model.remoteMethod('fakeReturn', {});
model.remoteMethod('getStuff', {
description: "Get some stuff",
accepts: [
{arg: 'aParam', type: "String", required: true, description: "A parameter to process"}
],
http: {verb: "get", path: "/get-stuff"},
returns: {arg: "res", type: "Object"},
});
};
}
}