diff options
Diffstat (limited to 'LedgerSMB/RESTXML/Document/Session.pm')
-rw-r--r-- | LedgerSMB/RESTXML/Document/Session.pm | 33 |
1 files changed, 33 insertions, 0 deletions
diff --git a/LedgerSMB/RESTXML/Document/Session.pm b/LedgerSMB/RESTXML/Document/Session.pm new file mode 100644 index 00000000..1db36502 --- /dev/null +++ b/LedgerSMB/RESTXML/Document/Session.pm @@ -0,0 +1,33 @@ + +=head1 NAME + +LedgerSMB::RESTXML::Document::Session + +=head1 SYNOPSIS + +This sets up an authentication session for iterativly accessing documents in LedgerSMB. A user should +post a login document to /Session/userid, and upon success, they will recieve a cookie which they can use to further +access other resources. + +=cut + +package LedgerSMB::RESTXML::Document::Session; +use strict; +use warnings; +use base qw(LedgerSMB::RESTXML::Document::Base); + + +sub handle_get { + my ($self, $args) = @_; + + +} + +sub handle_post { + my ($self, $args) = @_; + print "Content-type: text/html\n\nhi"; + +} + + +1; |