Vuester is an idea for WordPress themes powered by Vue.js. Check out a demo.
Clone this theme to themes folder and run npm install.
MyTheme::add_templates();
MyTheme::set_menus( array(
'main-navigation' => __('Main Navigation')
));
$endpoints = new ThemeEndpoints();
// site.com/wp-json/theme/custom
$endpoints->get( 'custom', function() {
return {
'message': 'this is a custom endpoint'
};
} );
WP API Menus plugin don't work with WordPress REST API (Version 2).