<?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 ]
// +----------------------------------------------------------------------

// you should use `$router`
$router->group(function () use ($router){
	$router->get('fences/getSchoolFenceList', '\catchAdmin\fences\controller\Fences@getSchoolFenceList');
	$router->get('fences/getKqFenceList', '\catchAdmin\fences\controller\Fences@getKqFenceList');
	// fences路由
	$router->resource('fences', '\catchAdmin\fences\controller\Fences');
	$router->post('fences/saveSchoolFence', '\catchAdmin\fences\controller\Fences@saveSchoolFence');
	$router->post('fences/saveKqFence', '\catchAdmin\fences\controller\Fences@saveKqFence');
	$router->put('fences/editSchoolFence/<id>', '\catchAdmin\fences\controller\Fences@editSchoolFence');
	$router->put('fences/editKqFence/<id>', '\catchAdmin\fences\controller\Fences@editKqFence');
	
	
})->middleware('auth');