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.

38 lines
663 B

3 years ago
3 years ago
3 years ago
3 years ago
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 Bucket extends FlightAbstract
  18. {
  19. public function viewAction($id)
  20. {
  21. $this->app->render('bucket', [
  22. 'id' => $id
  23. ]);
  24. }
  25. public function indexAction($id, $visibilty, $page)
  26. {
  27. $bucketStore = new Bucket();
  28. $publicBuckets = $bucketStore->findBy();
  29. $this->app->json([
  30. 'publicBuckets' => $publicBuckets
  31. ]);
  32. }
  33. }