| 1234567891011121314151617181920212223242526272829303132333435363738394041 |
- <?php
- namespace internship\controller;
- use n2n\web\http\controller\ControllerAdapter;
- use internship\model\ArticleDao;
- use n2n\context\attribute\Inject;
- class ArticleController extends ControllerAdapter {
- #[Inject()]
- private ArticleDao $articleDao;
- /**
- *
- * @param string|null $categoryName
- * @return void
- */
- function getDoArticles(string $categoryName = null) {
- echo 'irgendöpis';
- $this->sendJson(['hello' => 'world']);
- }
- function getDoArticle(int $articleId) {
- $this->sendJson($article);
- }
- function postDoArticle() {
- }
- function putDoArticle() {
- }
- function deleteDoArticle() {
- }
- }
|