-
-
Notifications
You must be signed in to change notification settings - Fork 10
/
Copy pathAppApi.config.php
31 lines (30 loc) · 1.05 KB
/
AppApi.config.php
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
<?php
$config = [
'endpoint' => [
'type' => 'text',
'label' => 'API Endpoint',
'description' => 'Endpoint under which your API should be available',
'pattern' => '[a-z0-9-/]+',
'minlength' => 1,
'required' => true,
'value' => 'api',
'notes' => "('a-z', 0-9, '-' and '/' allowed, Default: 'api')\nFor subdirectories use e.g. subdir/api (no leading slash)"
],
'routes_path' => [
'type' => 'text',
'label' => 'Path to Routes.php',
'value' => 'site/api/Routes.php',
'notes' => 'default: site/api/Routes.php',
'description' => 'Location of the Routes.php file, where AppApi will find the $routes definition array. Base of path: ProcessWire-Root (Location of index.php)'
],
'access_logging' => [
'type' => 'checkbox',
'label' => 'Activate Access-Logging',
'notes' => 'Will write access-data in "appapi-access.txt" log'
],
'deactivate_url_hook' => [
'type' => 'checkbox',
'label' => 'Deactivate URL Hook',
'notes' => 'Will deactivate route-handling by ProcessWire URL hook and fallback to ProcessPageView::pageNotFound hook.'
],
];