xielin 5 years ago
parent
commit
3925227df7
1 changed files with 2 additions and 20 deletions
  1. 2 20
      routes/api.php

+ 2 - 20
routes/api.php

@@ -16,25 +16,6 @@ $api = app('Dingo\Api\Routing\Router');
 $api->version('v1', [
     'namespace' => 'App\Http\Controllers',
 ], function ($api) {
-    //登录
-
-    $api->post('login', 'AuthController@authenticate');
-
-
-
-    $api->group(['middleware' => 'auth:api'], function ($api) {
-        //注册
-        $api->post('reg', 'AuthController@register');
-        //登出
-        $api->post('logout', 'AuthController@logout');
-        //刷新身份令牌
-        $api->post('refresh', 'AuthController@refresh');
-    });
-
-    //测试
-    $api->get('test', 'TestController@index');
-    //配置
-    $api->get('config', 'ConfigController@index');
     $api->group(['namespace' => 'Post'], function ($api) {
         //发布内容
         $api->post('post', 'PostController@create');
@@ -50,6 +31,7 @@ $api->version('v1', [
     });
 
     $api->group(['middleware' => 'jwt.chxq_auth'], function ($api) {
-
+        //配置
+        $api->get('config', 'ConfigController@index');
     });
 });