Hi Dilan,

Please find my comments inline.

Can you explain the use-case behind splitting onRequest() function to two,
> i.e. onGet() and onPost() ?
>

Please refer mail thread[1] for this.


> Does this mean that we can have independent server-side JS scripts in UUF
> to handle a GET or a POST outside pages and units ?
>

Both GET and POST requests will be handled by a single server-side JS file
which has *onGet* and/or *onPost* functions. Please refer [2] for a example.

[1] Document onRequest() method in the UUF developer's guide
[2]
https://github.com/wso2/carbon-uuf/blob/master/samples/apps/org.wso2.carbon.uuf.sample.pets-store.app/src/main/pages/pets/%7Bid%7D.js

Thanks,
Shan.

-- 
Shan Mahanama

Software Engineer, WSO2 Inc. http://wso2.com
<http://l.facebook.com/l.php?u=http%3A%2F%2Fwso2.com&h=gAQEswASa>
Email: sh...@wso2.com
Mobile: +94 71 2000 498
_______________________________________________
Dev mailing list
Dev@wso2.org
http://wso2.org/cgi-bin/mailman/listinfo/dev

Reply via email to