|
@@ -16,6 +16,7 @@ $api = app('Dingo\Api\Routing\Router');
|
|
|
$api->version('v1', [
|
|
|
'namespace' => 'App\Http\Controllers',
|
|
|
], function ($api) {
|
|
|
+
|
|
|
$api->group(['middleware' => 'jwt.chxq_auth'], function ($api) {
|
|
|
//配置
|
|
|
$api->get('config', 'ConfigController@index');
|
|
@@ -26,7 +27,6 @@ $api->version('v1', [
|
|
|
$api->post('download', 'DownloadController@create');
|
|
|
|
|
|
$api->group(['namespace' => 'Post'], function ($api) {
|
|
|
-
|
|
|
$api->get('statistics', 'PostController@statistics');
|
|
|
//发布内容
|
|
|
$api->post('post', 'PostController@create');
|