convert search to GET and make it all AJAX

This commit is contained in:
Oliver Gorwits
2012-01-07 04:00:55 +00:00
parent 3f500de477
commit 427a759c53
3 changed files with 48 additions and 43 deletions

View File

@@ -18,10 +18,10 @@ get '/' => sub {
};
ajax '/ajax/content/search/:thing' => sub {
return '';
return '<p>Hello World.</p>';
};
post '/search' => sub {
get '/search' => sub {
my $q = param('q');
if ($q and not param('tab')) {
# pick most likely tab for initial results