Testing how to develop an app

This commit is contained in:
root
2022-03-14 20:05:46 +00:00
parent 1984e55837
commit a30a4f13ec
11 changed files with 99 additions and 38 deletions

View File

@ -28,4 +28,11 @@ class PageController extends Controller {
return new TemplateResponse('mywiki', 'index'); // templates/index.php
}
/**
* @NoAdminRequired
*/
public function test() {
return new DataResponse('JDG::Test');
}
}

View File

@ -23,9 +23,15 @@
/**
* @NoAdminRequired
*/
public function index() {
return new DataResponse($this->service->test($this->userId));
public function test() {
$x = $this->service->test($this->userId);
return new DataResponse(print_r($x,true));
}
/**
* @NoAdminRequired
*/
public function index() {
return new DataResponse($this->service->findAll($this->userId));
}