group(function () use ($router){ // station路由 $router->resource('station', '\catchAdmin\stations\controller\Station'); $router->post('kqstation/export', '\catchAdmin\stations\controller\Station@kqexport');//导出考勤基站 $router->post('dwstation/export', '\catchAdmin\stations\controller\DwStation@export');//导出定位基站 $router->post('socketstation/export', '\catchAdmin\stations\controller\IndoorStation@export');//导出定位基站 // 定位基站 $router->get('dwstation/getRangeData', '\catchAdmin\stations\controller\DwStation@rangeData'); $router->put('dwstation/updateStationConfig/:id', '\catchAdmin\stations\controller\DwStation@updateStationConfig'); $router->put('station/updateKqStationConfig/:id', '\catchAdmin\stations\controller\Station@updateKqStationConfig'); $router->put('station/sendIpConfig/:id', '\catchAdmin\stations\controller\Station@sendIpConfig'); $router->put('station/controlConfig/:id', '\catchAdmin\stations\controller\Station@controlConfig'); $router->resource('dwstation', '\catchAdmin\stations\controller\DwStation'); // 室内基站 $router->put('indoorStation/updateLocation/:id', '\catchAdmin\stations\controller\IndoorStation@updateLocation'); $router->resource('indoorStation', '\catchAdmin\stations\controller\IndoorStation'); // stationHeartbeat路由 $router->resource('stationHeartbeat', '\catchAdmin\stations\controller\StationHeartbeat'); })->middleware('auth');