Oleg K 4 năm trước cách đây
mục cha
commit
377d6bc89a
2 tập tin đã thay đổi với 17 bổ sung1 xóa
  1. 1 1
      config/web.php
  2. 16 0
      controllers/ProfileController.php

+ 1 - 1
config/web.php

@@ -67,7 +67,7 @@ $config = [
                 [
                     'class' => 'yii\rest\UrlRule',
                     'controller' => ['api/user'],
-                    'except' => [ 'index', 'view', 'delete' ],
+
                     'extraPatterns' => [
                         'POST add' => 'bulk-add',
                     ],

+ 16 - 0
controllers/ProfileController.php

@@ -0,0 +1,16 @@
+<?php
+
+
+namespace app\controllers;
+
+
+use yii\web\Controller;
+
+class ProfileController extends Controller
+{
+
+    public function actionIndex(){
+        return $this->render('index');
+    }
+
+}