the bola v2 website
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.

api.php 2.0KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667686970717273
  1. <?php
  2. return [
  3. /*
  4. |--------------------------------------------------------------------------
  5. | API
  6. |--------------------------------------------------------------------------
  7. |
  8. | Whether the API should be enabled, and through what route. You
  9. | can enable or disable the whole API, and expose individual
  10. | resources per environent, depending on your site needs.
  11. |
  12. | https://statamic.dev/content-api#enable-the-api
  13. |
  14. */
  15. 'enabled' => env('STATAMIC_API_ENABLED', false),
  16. 'resources' => [
  17. 'collections' => false,
  18. 'navs' => false,
  19. 'taxonomies' => false,
  20. 'assets' => false,
  21. 'globals' => false,
  22. 'forms' => false,
  23. 'users' => false,
  24. ],
  25. 'route' => env('STATAMIC_API_ROUTE', 'api'),
  26. /*
  27. |--------------------------------------------------------------------------
  28. | Middleware & Authentication
  29. |--------------------------------------------------------------------------
  30. |
  31. | Define the middleware / middleware group that will be applied to the
  32. | API route group. If you want to externally expose this API, here
  33. | you can configure a middleware based authentication layer.
  34. |
  35. */
  36. 'middleware' => env('STATAMIC_API_MIDDLEWARE', 'api'),
  37. /*
  38. |--------------------------------------------------------------------------
  39. | Pagination
  40. |--------------------------------------------------------------------------
  41. |
  42. | The numbers of items to show on each paginated page.
  43. |
  44. */
  45. 'pagination_size' => 50,
  46. /*
  47. |--------------------------------------------------------------------------
  48. | Caching
  49. |--------------------------------------------------------------------------
  50. |
  51. | By default, Statamic will cache each endpoint until the specified
  52. | expiry, or until content is changed. See the documentation for
  53. | more details on how to customize your cache implementation.
  54. |
  55. | https://statamic.dev/content-api#caching
  56. |
  57. */
  58. 'cache' => [
  59. 'expiry' => 60,
  60. ],
  61. ];