[livejournal] r20426: OPSC-399: Code is a little bit refactore...
Committer: vtroitsky
OPSC-399: Code is a little bit refactoredU trunk/cgi-bin/Apache/LiveJournal.pm
Modified: trunk/cgi-bin/Apache/LiveJournal.pm
===================================================================
--- trunk/cgi-bin/Apache/LiveJournal.pm 2011-10-25 09:18:44 UTC (rev 20425)
+++ trunk/cgi-bin/Apache/LiveJournal.pm 2011-10-25 09:49:53 UTC (rev 20426)
@@ -1079,10 +1079,7 @@
return $view if defined $view;
}
elsif ( $func eq 'api' || LJ::Request->uri =~ /^\/__api_endpoint.*$/) {
- Apache::LiveJournal::Interface::Api->load;
- LJ::Request->handler("perl-script");
- LJ::Request->push_handlers(PerlHandler => \&Apache::LiveJournal::Interface::Api::handler);
- return LJ::Request::OK;
+ return LJ::URI->api_handler();
}
elsif ( $func eq "games" ) {
LJ::get_remote();
