#1 2015-01-16 13:29:45

gm
Member
Registered: 2015-01-06
Posts: 13

Custom URL responses

Is there any way to respond custom URL requests like "domain.com/one/two/three/four/" ?

Offline

#2 2015-01-16 19:38:32

ab
Administrator
From: France
Registered: 2010-06-21
Posts: 14,660
Website

Re: Custom URL responses

For method-based services, you have access to the whole URI by using the supplied context parameter.

With your corresponding request:
- 'one' will be the root model
- 'two' will be the method name
- 'three/four' will be available from the supplied context parameter.

So the method would be able to handle this URI.

Offline

Board footer

Powered by FluxBB