Hello Chan,

Can try you changing the following line ;

router.get('resource',function .......


to:

router.get('/resource',function ....


Please let me know if this fixes your problem.

Thank You,
Sameera


On Sun, Mar 2, 2014 at 11:39 PM, Chan <duli...@wso2.com> wrote:

> Hi Sameera,
> I am faced in an issue where my route is not being accessed. My code is at
> on github [1]. I think the route is being added to the route tree but it's
> not being executed.
>
> Also it would be better make the public api of a route function in the
> below construct.
>
> function(context){
>
> context._request // for request object
>
> context._response // for response object
>
> context._session // for session object
> context._param // for params hash
> context._body // for body
>
> context._files // for files coming in the request
>
> }
>
> [1] - https://github.com/dulichan/storage
>
> --
> Chan (Dulitha Wijewantha)
> Software Engineer - Mobile Development
> WSO2Mobile
> Lean.Enterprise.Mobileware
>  * ~Email       duli...@wso2.com <duli...@wso2mobile.com>*
> *  ~Mobile     +94712112165 <%2B94712112165>*
>
> *  ~Website   dulithawijewantha.com <http://dulithawijewantha.com/> *
>
> *  ~Blog         blog.dulithawijewantha.com
> <http://dulichan.github.io/chan/>*
> *  ~Twitter     @dulitharw <https://twitter.com/dulitharw>*
>



-- 
Sameera Medagammaddegedara
Software Engineer

Contact:
Email: samee...@wso2.com
Mobile: + 94 077 255 3005
_______________________________________________
Dev mailing list
Dev@wso2.org
http://wso2.org/cgi-bin/mailman/listinfo/dev

Reply via email to