<?php
use Cake\Routing\RouteBuilder;
use Cake\Routing\Router;
Router::plugin('Croogo/Meta', ['path' => '/'], function (RouteBuilder $route) {
$route->prefix('admin', function (RouteBuilder $route) {
$route->setExtensions(['json']);
$route->applyMiddleware('csrf');
$route->scope('/meta', [], function (RouteBuilder $route) {
$route->fallbacks();
});
});
});
Router::plugin('Croogo/Meta', ['path' => '/'], function (RouteBuilder $route) {
$route->prefix('api', function (RouteBuilder $route) {
$route->prefix('v10', ['path' => '/v1.0'], function (RouteBuilder $route) {
$route->setExtensions(['json']);
$route->resources('Meta');
});
});
});