<?php


$router->controller('template', 'Api\TemplateController');
<?php

$router->group(array('middleware' => 'auth'), function() use($router)
{
    $router->group(array('middleware' => 'permission'), function() use($router)
    {
        $router->controller('template', 'Api\TemplateController');
    });
});
Add check auth on route
Add check auth on route
