[Jifty-commit] r1690 - jifty/trunk/plugins/REST/lib/Jifty/Plugin/REST

jifty-commit at lists.jifty.org jifty-commit at lists.jifty.org
Fri Jul 28 22:56:00 EDT 2006


Author: audreyt
Date: Fri Jul 28 22:55:59 2006
New Revision: 1690

Modified:
   jifty/trunk/plugins/REST/lib/Jifty/Plugin/REST/Dispatcher.pm

Log:
* REST Dispatcher skeleton that actually works
  ...now actually moving stuff from RPS to it...

Modified: jifty/trunk/plugins/REST/lib/Jifty/Plugin/REST/Dispatcher.pm
==============================================================================
--- jifty/trunk/plugins/REST/lib/Jifty/Plugin/REST/Dispatcher.pm	(original)
+++ jifty/trunk/plugins/REST/lib/Jifty/Plugin/REST/Dispatcher.pm	Fri Jul 28 22:55:59 2006
@@ -1,7 +1,7 @@
 use strict;
 use warnings;
 
-package Jifty::Plugin::REST;
+package Jifty::Plugin::REST::Dispatcher;
 use Jifty::Dispatcher -base;
 
 #before '/=/**' => run {
@@ -10,7 +10,7 @@
 #};
 
 before qr{^ (/=/ .*) \. (js|yml|perl|csv) $}x => run {
-    header(Accept => $2);
+    $ENV{HTTP_ACCEPT} = $2;
     dispatch $1;
 };
 
@@ -32,31 +32,39 @@
 on POST   '/=/action/*'    => \&run_action;
 
 sub list_models {
+    die "hey list models";
 }
 
 sub list_model_keys {
+    die "hey list keys";
 }
 
 sub list_model_items {
+    die "hey list items";
 }
 
 sub show_item {
+    die "hey show items";
 }
 
 sub replace_item {
+    die "hey replace item";
 }
 
 sub delete_item {
+    die "hey delete item";
 }
 
 sub list_actions {
+    die "hey list actions";
 }
 
 sub list_action_params {
+    die "hey action params";
 }
 
 sub run_action {
+    die "run action";
 }
 
-
 1;


More information about the Jifty-commit mailing list