You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

57 lines
928 B

3 years ago
  1. <?php
  2. namespace App\Http;
  3. use Rakit\Validation\Validator;
  4. use App\Flight\FlightAbstract;
  5. use App\Models\Bucket;
  6. use Carbon\Carbon;
  7. /**
  8. *
  9. *
  10. *
  11. *
  12. * @author Björn Hase
  13. * @link https://gitea.tentakelfabrik.de/mITSM/feedback GitHub Repository
  14. *
  15. *
  16. */
  17. class Note extends FlightAbstract
  18. {
  19. /**
  20. *
  21. * @param integer $id
  22. *
  23. */
  24. public function viewAction($id)
  25. {
  26. $this->app->render('bucket', [
  27. 'id' => $id
  28. ]);
  29. }
  30. public function indexAction($bucketId)
  31. {
  32. $noteStore = new Note();
  33. $notes = $noteStore->findBy();
  34. $this->app->json([
  35. 'data' => $notes,
  36. 'page' => $page
  37. ]);
  38. }
  39. public function createAction($bucketId)
  40. {
  41. $result = [
  42. 'success' => false
  43. ];
  44. $noteStore = new Note();
  45. $this->app->json([
  46. 'data' => $notes,
  47. ]);
  48. }
  49. }