diff options
Diffstat (limited to 'api/api.php')
| -rw-r--r-- | api/api.php | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/api/api.php b/api/api.php index 8332946..35c4496 100644 --- a/api/api.php +++ b/api/api.php @@ -2,6 +2,7 @@ require_once get_template_directory() . '/api/menu.php'; require_once get_template_directory() . '/api/sidebar.php'; +require_once get_template_directory() . '/api/head.php'; add_action( 'rest_api_init', function () { register_rest_route( 'fuselkoenig', '/menu', array( @@ -12,4 +13,8 @@ add_action( 'rest_api_init', function () { 'methods' => 'GET', 'callback' => 'fk_get_sidebar', ) ); + register_rest_route( 'fuselkoenig', '/head', array( + 'methods' => 'GET', + 'callback' => 'fk_wp_head', + ) ); } ); |
