On 24 Sep 2008, at 09:20, Dermot wrote:
If my the root of my app is /myapp. I have installed a the REST
Controller as lib/MyApp/Controller/REST.pm
The Controller has this for now.
sub files : Local : ActionClass('REST') {
my ($self, $c) = @_;
$c->log->debug("Hello from REST Controller");
}
So that's the public path /rest/files
sub files_GET {
And that should be called for GET requests.
My remote LWP client reads
...
my $server = 'http://server.mydomain.com:3000'
my $url = $server."/myapp/rest";
I think you need /rest/files
.-------------------------------------
+--------------------------------------.
| Path |
Private |
+-------------------------------------
+--------------------------------------+
| /rest/files | /rest/files
..
[info] *** Request 7 (0.019/s) [16196] [Wed Sep 24 09:12:33 2008] ***
[debug] "GET" request for "motion/rest" from "x.x.x.x"
[debug] Arguments are "myapp/rest"
And this explains why - you're asking for /myapp/rest, but you only
have /myapp/rest/files
Cheers
t0m
_______________________________________________
List: [email protected]
Listinfo: http://lists.scsys.co.uk/cgi-bin/mailman/listinfo/catalyst
Searchable archive: http://www.mail-archive.com/[email protected]/
Dev site: http://dev.catalyst.perl.org/