catchAdmin/catch/sms/route.php

20 lines
925 B
PHP
Raw Normal View History

2020-09-17 21:14:00 +08:00
<?php
// +----------------------------------------------------------------------
// | CatchAdmin [Just Like ]
// +----------------------------------------------------------------------
// | Copyright (c) 2017~{$year} http://catchadmin.com All rights reserved.
// +----------------------------------------------------------------------
// | Licensed ( https://github.com/yanwenwu/catch-admin/blob/master/LICENSE.txt )
// +----------------------------------------------------------------------
// | Author: JaguarJack [ njphper@gmail.com ]
// +----------------------------------------------------------------------
/* @var think\Route $router */
2020-09-17 21:14:00 +08:00
// you should use `$router`
$router->group('sms', function () use ($router){
// config路由
$router->resource('config', '\catchAdmin\sms\controller\Config');
// template 路由
$router->resource('template', '\catchAdmin\sms\controller\Template');
})->middleware('auth');