mirror of
https://ghproxy.net/https://github.com/abhijitb/helix.git
synced 2025-08-28 06:26:00 +08:00
Initial commit
This commit is contained in:
commit
153a4e9fd7
345 changed files with 359185 additions and 0 deletions
13
admin/rest-routes.php
Normal file
13
admin/rest-routes.php
Normal file
|
@ -0,0 +1,13 @@
|
|||
<?php
|
||||
add_action('rest_api_init', function () {
|
||||
register_rest_route('helix/v1', '/settings', [
|
||||
'methods' => 'GET',
|
||||
'permission_callback' => '__return_true',
|
||||
'callback' => function () {
|
||||
return [
|
||||
'siteTitle' => get_option('blogname'),
|
||||
'language' => get_option('WPLANG'),
|
||||
];
|
||||
}
|
||||
]);
|
||||
});
|
Loading…
Add table
Add a link
Reference in a new issue