Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP
Tree: 5b297032b2
Fetching contributors…

Cannot retrieve contributors at this time

21 lines (13 sloc) 0.399 kB
package Jobeet::Controller::Search;
use Ark 'Controller';
use Jobeet::Models;
sub index :Path {
my ($self, $c) = @_;
my $query = $c->req->param('q')
or $c->detach('/default');
$c->stash->{jobs} = models('Schema::Job')->search_fulltext($query);
if ($c->req->header('X-Requested-With') =~ /XMLHttpRequest/i) {
$c->view('MT')->template('search/ajax');
}
}
1;
Jump to Line
Something went wrong with that request. Please try again.