summaryrefslogtreecommitdiffstats
path: root/plugins/samples/HelloWorld.c
diff options
context:
space:
mode:
authorFulup Ar Foll <fulup@iot.bzh>2015-12-21 02:10:20 +0100
committerFulup Ar Foll <fulup@iot.bzh>2015-12-21 02:10:20 +0100
commit6f22e88cd3e6d502efa7100ad2b129641305fb53 (patch)
tree25932040425599558366363f09e29d12eda39578 /plugins/samples/HelloWorld.c
parent0d170147150b90678225b55548215d09d8273e6d (diff)
Post File Working in Most cases
Diffstat (limited to 'plugins/samples/HelloWorld.c')
-rw-r--r--plugins/samples/HelloWorld.c3
1 files changed, 2 insertions, 1 deletions
diff --git a/plugins/samples/HelloWorld.c b/plugins/samples/HelloWorld.c
index 619c075a..4117c26a 100644
--- a/plugins/samples/HelloWorld.c
+++ b/plugins/samples/HelloWorld.c
@@ -73,7 +73,8 @@ STATIC json_object* pingJson (AFB_session *session, AFB_request *request) {
return jresp;
}
-
+// NOTE: this sample does not use session to keep test a basic as possible
+// in real application most APIs should be protected with AFB_SESSION_CHECK
STATIC AFB_restapi pluginApis[]= {
{"ping" , AFB_SESSION_NONE, (AFB_apiCB)pingSample , "Ping Application Framework"},
{"pingnull" , AFB_SESSION_NONE, (AFB_apiCB)pingFail , "Return NULL"},