Skip to content

Commit

Permalink
Support get route in ajax controller action
Browse files Browse the repository at this point in the history
  • Loading branch information
reportico-web committed Jul 30, 2015
1 parent 61322a7 commit 546b441
Showing 1 changed file with 8 additions and 0 deletions.
8 changes: 8 additions & 0 deletions src/Reportico/Reportico/ReporticoServiceProvider.php
Original file line number Diff line number Diff line change
Expand Up @@ -46,6 +46,14 @@ public function register()
return $this->app["view"]->make('reportico::reportico');
});

$this->app["router"]->get("reportico/ajax", function() use ($app)
{
//return View::make('reportico::reportico');
//$engine= App::make("getReporticoEngine");
$engine = $app["app"]->make('getReporticoEngine');
$engine->execute();
});

$this->app["router"]->post("reportico/ajax", function() use ($app)
{
//return View::make('reportico::reportico');
Expand Down

0 comments on commit 546b441

Please sign in to comment.