Skip to content

Commit

Permalink
Added ajax application controller
Browse files Browse the repository at this point in the history
  • Loading branch information
Fmstrat committed Jul 8, 2015
1 parent 997e2e5 commit 7f233bb
Showing 1 changed file with 7 additions and 0 deletions.
7 changes: 7 additions & 0 deletions appinfo/application.php
Original file line number Diff line number Diff line change
Expand Up @@ -17,6 +17,7 @@

use \OCA\OwnNote\Controller\PageController;
use \OCA\OwnNote\Controller\OwnnoteApiController;
use \OCA\OwnNote\Controller\OwnnoteAjaxController;


class Application extends App {
Expand Down Expand Up @@ -45,6 +46,12 @@ public function __construct (array $urlParams=array()) {
);
});

$container->registerService('OwnnoteAjaxController', function($c){
return new OwnnoteAjaxController(
$c->query('AppName'),
$c->query('Request')
);
});

/**
* Core
Expand Down

0 comments on commit 7f233bb

Please sign in to comment.